るりまサーチ

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

別のキーワード

  1. openssl integer
  2. asn1 integer
  3. _builtin integer
  4. integer upto
  5. integer rationalize

ライブラリ

クラス

キーワード

検索結果

Method#hash -> Integer (27227.0)

自身のハッシュ値を返します。

...自身のハッシュ値を返します。


//emlist[例][ruby]{
a = method(:==)
b = method(:eql?)
p a.eql? b # => true
p a.hash == b.hash # => true
p [a, b].uniq.size # => 1
//}...

UnboundMethod#hash -> Integer (21227.0)

自身のハッシュ値を返します。

...自身のハッシュ値を返します。


//emlist[例][ruby]{
a = method(:==).unbind
b = method(:eql?).unbind
p a.eql? b # => true
p a.hash == b.hash # => true
p [a, b].uniq.size # => 1
//}...

JSON::Generator::GeneratorMethods::Integer#to_json(state_or_hash = nil) -> String (6114.0)

自身から生成した JSON 形式の文字列を返します。

...の文字列を返します。

@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash
指定します。

//emli...

UnboundMethod#owner -> Class | Module (3049.0)

このメソッドが定義されている class か module を返します。

...このメソッドが定義されている class か module を返します。

//emlist[例][ruby]{
Integer
.instance_method(:to_s).owner # => Integer
Integer
.instance_method(:to_c).owner # => Numeric
Integer
.instance_method(:hash).owner # => Kernel
//}...

Array#dig(idx, ...) -> object | nil (19.0)

self 以下のネストしたオブジェクトを dig メソッドで再帰的に参照して返し ます。途中のオブジェクトが nil であった場合は nil を返します。

...ます。

//emlist[例][ruby]{
a = [[1, [2, 3]]]

a.dig(0, 1, 1) # => 3
a.dig(1, 2, 3) # => nil
a.dig(0, 0, 0) # => TypeError: Integer does not have #dig method
[42, {foo: :bar}].dig(1, :foo) # => :bar
//}

@see Hash#dig, Struct#dig, OpenStruct#dig...

絞り込み条件を変える