るりまサーチ

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

別のキーワード

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

ライブラリ

モジュール

キーワード

検索結果

<< < 1 2 3 >>

JSON::State#to_hash -> Hash (6119.0)

自身をハッシュに変換します。

...//emlist[例][ruby]{
require "json"
require "pp"

json_state = JSON::State.new
pp json_state.to_h

# => {:indent=>"",
# :space=>"",
# :space_before=>"",
# :object_nl=>"",
# :array_nl=>"",
# :allow_nan=>false,
# :ascii_only=>false,
# :max_nesting=>100,
# :depth=>0,
#...
...:buffer_initial_length=>1024}
//}...

ObjectSpace::WeakMap#[]=(key, value) (6007.0)

引数 key から引数 value への参照を作成します。

...lue への参照を作成します。

@param key 参照元のオブジェクトを指定します。

@param value 参照先のオブジェクトを指定します。

//emlist[例][ruby]{
weak_map = ObjectSpace::WeakMap.new
key = "text"
weak_map[key] = "test" # => test
weak_map[key] # => test
//}...

Rake::NameSpace#[](name) -> Rake::Task (3107.0)

与えられた名前のタスクを返します。

...のタスクを返します。

@param name タスクの名前を指定します。

//emlist[][ruby]{
# Rakefile での記載例とする

namespace :ns do |ns|
t
ask :ts1 do
end
t
ask :ts2 do
end

ns[:ts1] # => <Rake::Task ns:ts1 => []>
ns[:ts2] # => <Rake::Task ns:ts2 => []>
end
//}...
<< < 1 2 3 >>