60件ヒット
[1-60件を表示]
(0.411秒)
種類
- インスタンスメソッド (48)
- 特異メソッド (12)
ライブラリ
- json (60)
クラス
-
JSON
:: State (60)
キーワード
-
buffer
_ initial _ length= (12) - new (12)
-
to
_ h (12) -
to
_ hash (12)
検索結果
先頭5件
-
JSON
:: State # buffer _ initial _ length -> Integer (24301.0) -
This integer returns the current initial length of the buffer.
...This integer returns the current initial length of the buffer.... -
JSON
:: State # buffer _ initial _ length=(length) (12201.0) -
This sets the initial length of the buffer to length, if length > 0, otherwise its value isn't changed.
...This sets the initial length of the buffer to length, if length > 0,
otherwise its value isn't changed.... -
JSON
:: State . new(options = {}) -> JSON :: State (6106.0) -
自身を初期化します。
...りです。
: :indent
インデントに使用する文字列を指定します。デフォルトは空文字列です。
: :space
JSON 形式の文字列のトークン間に挿入する文字列を指定します。デフォルトは空文字列です。
: :space_before
JSON 形式の文......オブジェクトを表す部分にある ':' の
前に挿入する文字列をセットします。デフォルトは空文字列です。
: :object_nl
JSON 形式の文字列中に現れる JavaScript のオブジェクトの行末に挿入する文字列を指定します。
デフォル......: :buffer_initial_length
sets the initial length of the generator's internal buffer.
//emlist[例 Hash を指定][ruby]{
require "json"
json_state = JSON::State.new(indent: "\t")
json_state.class # => JSON::Ext::Generator::State
json_state.indent # => "\t"
//}
//emlist[例 JSON::State を指... -
JSON
:: State # to _ h -> Hash (3006.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}
//}... -
JSON
:: State # to _ hash -> Hash (3006.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}
//}...