るりまサーチ (Ruby 2.2.0)

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

別のキーワード

  1. range max
  2. range min
  3. net/http set_range
  4. httpheader set_range
  5. range step

ライブラリ

検索結果

JSON.create_id=(identifier) (40.0)

json_create メソッドで使用するクラスを決定するために使用する値をセットします。

...
json
_create メソッドで使用するクラスを決定するために使用する値をセットします。

@param identifier 識別子を指定します。

//emlist[例][ruby]{
require "json"
require "json/add/core"

JSON
.create_id # => "json_class"
puts (1..5).to_json...
...# => {"json_class":"Range","a":[1,5,false]}
JSON
.create_id = "my_json_class" # => "my_json_class"
JSON
.create_id # => "my_json_class"
puts (1..5).to_json # => {"my_json_class":"Range","a":[1,5,false]}
//}...