るりまサーチ

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

別のキーワード

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

クラス

検索結果

Range#to_json(*args) -> String (21009.0)

自身を JSON 形式の文字列に変換して返します。

...出しています。

@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json に渡されます。

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

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

@see JSON::Generator::GeneratorMethods::Hash#to_json...