るりまサーチ

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

別のキーワード

  1. open3 popen2e
  2. socket af_e164
  3. matrix det_e
  4. matrix rank_e
  5. open3 capture2e

クラス

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

Module#<=(other) -> bool | nil (21237.0)

比較演算子。self が other の子孫であるか、self と other が 同一クラスである場合、 true を返します。 self が other の先祖である場合、false を返します。

...演算子。self が other の子孫であるか、self と other が
同一クラスである場合、 true を返します。
self が other の先祖である場合、false を返します。

継承関係にないクラス同士の比較では
nil を返します。

@param other 比較対象の...
...@raise TypeError other がクラスやモジュールではない場合に発生します。

@see Module#<

//emlist[例][ruby]{
module Foo; end
module Bar
include Foo
e
nd
module Baz
prepend Foo
e
nd

Bar.ancestors # => [Bar, Foo]
Foo <= Bar # => false
Bar <= Foo # => true

Baz.ancestors # =>...
...[Foo, Baz]
Foo <= Baz # => false
Baz <= Foo # => true

Foo <= Foo # => true
Foo <= Object # => nil
//}...

Comparable#<=(other) -> bool (21219.0)

比較演算子 <=> をもとにオブジェクト同士を比較します。 <=> が負の整数か 0 を返した場合に、true を返します。 それ以外の整数を返した場合に、false を返します。

... <=> をもとにオブジェクト同士を比較します。
<=
> が負の整数か 0 を返した場合に、true を返します。
それ以外の整数を返した場合に、false を返します。

@param other 自身と比較したいオブジェクトを指定します。
@raise ArgumentE...
...rror <=> が nil を返したときに発生します。

//emlist[例][ruby]{
1 <= 0 # => false
1 <= 1 # => true
1 <= 2 # => true
//}...

Integer#<=(other) -> bool (21219.0)

比較演算子。数値として等しいまたは小さいか判定します。

...m other 比較対象の数値
@return self よりも other の方が大きい場合か、
両者が等しい場合 true を返します。
そうでなければ false を返します。

//emlist[][ruby]{
1 <= 0 # => false
1 <= 1 # => true
1 <= 2 # => true
//}...

BigDecimal#<=(other) -> bool (21201.0)

self が other より小さいか等しい場合に true を、そうでない場合に false を返します。

...self が other より小さいか等しい場合に true を、そうでない場合に false
を返します。...

Complex#<=(other) -> bool (21201.0)

@undef

...@undef...

絞り込み条件を変える

Hash#<=(other) -> bool (18219.0)

self が other のサブセットか同じである場合に真を返します。

...self が other のサブセットか同じである場合に真を返します。

@param other 自身と比較したい Hash オブジェクトを指定します。

//emlist[例][ruby]{
h1 = {a:1, b:2}
h2 = {a:1, b:2, c:3}
h1 <= h2 # => true
h2 <= h1 # => false
h1 <= h1 # => true
//}

@see...

Float#<=(other) -> bool (18207.0)

比較演算子。数値として等しいまたは小さいか判定します。

...param other 比較対象の数値
@return self よりも other の方が大きい場合か、
両者が等しい場合 true を返します。
そうでなければ false を返します。

//emlist[例][ruby]{
3.14 < 3.1415 # => true
3.14 <= 3.1415 # => true
//}...

Fixnum#<=(other) -> bool (18201.0)

比較演算子。数値として等しいまたは小さいか判定します。

...演算子。数値として等しいまたは小さいか判定します。

@param other 比較対象の数値
@return self よりも other の方が大きい場合か、
両者が等しい場合 true を返します。
そうでなければ false を返します。...

REXML::Text#<=>(other) -> -1 | 0 | 1 (12201.0)

テキストの内容を other と比較します。

...テキストの内容を other と比較します。

@param other 比較対象(REXML::Text オブジェクトもしくは文字列)...

Fiddle::Pointer#<=>(other) -> Integer (9301.0)

ポインタの指すアドレスの大小を比較します。

...ポインタの指すアドレスの大小を比較します。

other より小さい場合は -1, 等しい場合は 0、other より大きい場合は
1を返します。

@param other 比較対象の Pointer オブジェクト...

絞り込み条件を変える

<< 1 2 3 ... > >>