るりまサーチ

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

別のキーワード

  1. string b
  2. _builtin b
  3. b string
  4. b
  5. b _builtin

クラス

検索結果

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

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 Hash#<, Hash#>=, Hash#>...