るりまサーチ

最速Rubyリファレンスマニュアル検索!
63件ヒット [1-63件を表示] (0.035秒)

別のキーワード

  1. _builtin ==
  2. openssl ==
  3. rexml/document ==
  4. matrix ==
  5. == _builtin

クラス

キーワード

検索結果

FalseClass#^(other) -> bool (18156.0)

other が真なら true を, 偽なら false を返します。

...

^
は再定義可能な演算子に分類されていますので、通常は false ^ other の形で使われます。

//emlist[例][ruby]{
p false ^ true #=> true
p false ^ false #=> false
p false ^ nil #=> false
p false ^ (1 == 1) #=> true
p false ^ (1 + 1) #=> true

p false.^(tru...
...e) #=> true
p false.^(false) #=> false
p false.^(nil) #=> false
p false.^(1 == 1) #=> true
p false.^(1 + 1) #=> true
//}...

TrueClass#^(other) -> bool (18156.0)

other が真なら false を, 偽なら true を返します。

...

^
は再定義可能な演算子に分類されていますので、通常は true ^ other のように使われます。

//emlist[例][ruby]{
p true ^ true #=> false
p true ^ false #=> true
p true ^ nil #=> true
p true ^ (1 == 1) #=> false
p true ^ (1 + 1) #=> false

p true.^(tru...
...e) #=> false
p true.^(false) #=> true
p true.^(nil) #=> true
p true.^(1 == 1) #=> false
p true.^(1 + 1) #=> false
//}...

Array#pack(template) -> String (80.0)

配列の内容を template で指定された文字列にしたがって、 バイナリとしてパックした文字列を返します。

...されます。
また、`#' から改行あるいはテンプレート文字列の最後まではコメントとみな
され無視されます。

==
= 整数のテンプレート文字のシステム依存性

各テンプレート文字の説明の中で、
short や long はシステムによら...
...nsigned 16bit(nと同じ)
s>: big endian int16_t
s!>: big endian signed short
l<: little endian int32_t
l!<: little endian signed long
//}

==
= 各テンプレート文字の説明

説明中、Array#pack と String#unpack で違いのあるものは `/' で区切って
「Array#pack の...
...//emlist[][ruby]{
[""].pack("m") # => ""
["\0"].pack("m") # => "AA==\n"
["\0\0"].pack("m") # => "AAA=\n"
["\0\0\0"].pack("m") # => "AAAA\n"
["\xFF"].pack("m") # => "/w==\n"
["\xFF\xFF"].pack("m") # => "//8=\n"
["\xFF\xFF\xFF"].pack("m") # => "////\n"...

Array#pack(template, buffer: String.new) -> String (80.0)

配列の内容を template で指定された文字列にしたがって、 バイナリとしてパックした文字列を返します。

...されます。
また、`#' から改行あるいはテンプレート文字列の最後まではコメントとみな
され無視されます。

==
= 整数のテンプレート文字のシステム依存性

各テンプレート文字の説明の中で、
short や long はシステムによら...
...nsigned 16bit(nと同じ)
s>: big endian int16_t
s!>: big endian signed short
l<: little endian int32_t
l!<: little endian signed long
//}

==
= 各テンプレート文字の説明

説明中、Array#pack と String#unpack で違いのあるものは `/' で区切って
「Array#pack の...
...//emlist[][ruby]{
[""].pack("m") # => ""
["\0"].pack("m") # => "AA==\n"
["\0\0"].pack("m") # => "AAA=\n"
["\0\0\0"].pack("m") # => "AAAA\n"
["\xFF"].pack("m") # => "/w==\n"
["\xFF\xFF"].pack("m") # => "//8=\n"
["\xFF\xFF\xFF"].pack("m") # => "////\n"...

String#unpack(template) -> Array (80.0)

Array#pack で生成された文字列を テンプレート文字列 template にしたがってアンパックし、 それらの要素を含む配列を返します。

...されます。
また、`#' から改行あるいはテンプレート文字列の最後まではコメントとみな
され無視されます。

==
= 整数のテンプレート文字のシステム依存性

各テンプレート文字の説明の中で、
short や long はシステムによら...
...nsigned 16bit(nと同じ)
s>: big endian int16_t
s!>: big endian signed short
l<: little endian int32_t
l!<: little endian signed long
//}

==
= 各テンプレート文字の説明

説明中、Array#pack と String#unpack で違いのあるものは `/' で区切って
「Array#pack の...
...//emlist[][ruby]{
[""].pack("m") # => ""
["\0"].pack("m") # => "AA==\n"
["\0\0"].pack("m") # => "AAA=\n"
["\0\0\0"].pack("m") # => "AAAA\n"
["\xFF"].pack("m") # => "/w==\n"
["\xFF\xFF"].pack("m") # => "//8=\n"
["\xFF\xFF\xFF"].pack("m") # => "////\n"...

絞り込み条件を変える

Numeric (14.0)

数値を表す抽象クラスです。Integer や Float などの数値クラス は Numeric のサブクラスとして実装されています。

...合があります。

Numeric#coerce メソッドを使うことによって異なる数値クラス間で演算を行うこともできます。

==
= 数値関連のメソッドを実際に定義しているクラス一覧

ほとんどの数値関連のメソッドはサブクラスで再定義...
...<=> | o - o o o o -
==
| - - o o o o o
==
= | - - o o o - -...
...o - - -
[] | - - o o - - -
^
| - - o o - - -
Numeric Integer Fixnum Bi...
...- -
<=> | o o o o -
==
| - o o o o
==
= | - o o - -
> | - o...
...>> | - o - - -
[] | - o - - -
^
| - o - - -
Numeric Integer Float Rational Complex
-...