33件ヒット
[1-33件を表示]
(0.402秒)
種類
- インスタンスメソッド (22)
- 特異メソッド (11)
ライブラリ
- json (33)
クラス
-
JSON
:: State (33)
キーワード
-
buffer
_ initial _ length= (11) - new (11)
検索結果
先頭3件
-
JSON
:: State # buffer _ initial _ length -> Integer (27301.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) (15201.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 (3206.0) -
自身を初期化します。
...自身を初期化します。
@param options ハッシュを指定します。
指定可能なオプションは以下の通りです。
: :indent
インデントに使用する文字列を指定します。デフォルトは空文字列です。
: :space
JSON 形式の文字列のト......cii_only
真を指定した場合、ASCII 文字列のみを用いて JSON 形式の文字列を生成します。
デフォルトは偽です。
: :buffer_initial_length
sets the initial length of the generator's internal buffer.
//emlist[例 Hash を指定][ruby]{
require "json"
json_state......::State.new(indent: "\t")
json_state.class # => JSON::Ext::Generator::State
json_state.indent # => "\t"
//}
//emlist[例 JSON::State を指定][ruby]{
require "json"
json_state = JSON::State.new(indent: "\t")
copy = JSON::State.new(json_state)
copy.class # => JSON::Ext::Generator::State
copy.ind...