るりまサーチ

最速Rubyリファレンスマニュアル検索!
604件ヒット [601-604件を表示] (0.130秒)
トップページ > クエリ:t[x] > 種類:インスタンスメソッド[x] > クエリ:ruby[x] > クエリ:b[x] > クラス:Module[x]

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. t61string new
  5. fiddle type_size_t

検索結果

<< < ... 5 6 7 >>

Module#>=(other) -> bool | nil (208.0)

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

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

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

@param other 比較対象のモジュールやクラス

@raise TypeError other...
...@see Module#<

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

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

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

Foo >= Foo # => true
Foo >= Object # =>...
<< < ... 5 6 7 >>