240件ヒット
[201-240件を表示]
(0.032秒)
別のキーワード
種類
- インスタンスメソッド (180)
- 特異メソッド (60)
クラス
- CSV (12)
-
Gem
:: Command (12) - Hash (84)
-
JSON
:: State (24) - Set (12)
-
URI
:: Generic (36)
オブジェクト
- ENV (24)
キーワード
- + (12)
- configure (12)
-
latest
_ gc _ info (24) - merge! (48)
-
merge
_ libs (12) - replace (12)
- table (12)
- update (36)
検索結果
先頭4件
-
GC
. latest _ gc _ info(key) -> object (18.0) -
最新のGCの情報を返します。
...のGCの情報を返します。
@param result_hash 戻り値のためのハッシュを指定します。省略した場合は新
しくハッシュを作成します。result_hash の内容は上書き
されます。
@param key 得られる情報から特......//emlist[例][ruby]{
latest = GC.latest_gc_info
latest # => {:major_by=>nil, :gc_by=>:newobj, :have_finalizer=>false, :immediate_sweep=>false, :state=>:sweeping}
stat = GC.stat
merged = GC.latest_gc_info(stat)
merged == latest.merge(stat) # => true
GC.latest_gc_info(:gc_by) # => :newobj
//}... -
GC
. latest _ gc _ info(result _ hash = {}) -> Hash (18.0) -
最新のGCの情報を返します。
...のGCの情報を返します。
@param result_hash 戻り値のためのハッシュを指定します。省略した場合は新
しくハッシュを作成します。result_hash の内容は上書き
されます。
@param key 得られる情報から特......//emlist[例][ruby]{
latest = GC.latest_gc_info
latest # => {:major_by=>nil, :gc_by=>:newobj, :have_finalizer=>false, :immediate_sweep=>false, :state=>:sweeping}
stat = GC.stat
merged = GC.latest_gc_info(stat)
merged == latest.merge(stat) # => true
GC.latest_gc_info(:gc_by) # => :newobj
//}... -
Hash
# replace(other) -> self (12.0) -
ハッシュの内容を other の内容で置き換えます。
...シュではない場合、otherのメソッドto_hashを使って暗黙の変換を試みます。
self = other.to_hash.dup と同じです。
@param other ハッシュまたはメソッド to_hash でハッシュに変換できるオブジェクトです。
@return self を返します。
//eml......{2 => 'B', 3 => 'C'}
foo.replace(bar)
p foo #=> {2=>"B", 3=>"C"}
zoo = {}
zoo = bar.dup
p zoo #=> {2=>"B", 3=>"C"}
class Foo
def to_hash
{:japan => 'kyoto'}
end
end
h = Hash.new
h.replace(Foo.new) #暗黙の変換
p h #=> {:japan=>"kyoto"}
//}
@see Hash#dup,Hash#merge,Object#to_hash... -
JSON
:: State # configure(options = {}) -> self (7.0) -
与えられたハッシュで自身を設定します。
...で自身を設定します。
オプションで使用するハッシュのキーについては JSON::State.new を参照してください。
@param options このオブジェクトの設定をするためのハッシュを指定します。
//emlist[例][ruby]{
require "json"
json_state = JS...