るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.031秒)
トップページ > クエリ:indent[x] > クエリ:from_state[x]

別のキーワード

  1. tsort each_strongly_connected_component_from
  2. prime int_from_prime_division
  3. _builtin from_name
  4. addrinfo connect_from
  5. socket connect_from

ライブラリ

クラス

検索結果

JSON::State.from_state(options) -> JSON::State (18143.0)

与えられた options によって生成した JSON::State のインスタンスを返します。

...y]{
require "json"

json_state = JSON::State.from_state(indent: "\t")
json_state.class # => JSON::Ext::Generator::State
json_state.indent # => "\t"
//}

//emlist[例 JSON::State を指定][ruby]{
require "json"

json_state = JSON::State.from_state(indent: "\t")
# JSON を出力する何らかの処...
...理を実行する
copy = JSON::State.from_state(json_state)
copy.class # => JSON::Ext::Generator::State
copy.indent # => "\t"
//}...