12件ヒット
[1-12件を表示]
(0.018秒)
別のキーワード
ライブラリ
- json (12)
クラス
-
JSON
:: State (12)
検索結果
-
JSON
:: State . from _ state(options) -> JSON :: State (18131.0) -
与えられた options によって生成した JSON::State のインスタンスを返します。
...[ruby]{
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"
//}...