るりまサーチ

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

別のキーワード

  1. _builtin new
  2. _builtin inspect
  3. _builtin []
  4. _builtin to_s
  5. _builtin each

ライブラリ

クラス

キーワード

検索結果

JSON::State#buffer_initial_length -> Integer (21101.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) (9101.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 (3106.0)

自身を初期化します。

...します。デフォルトは空文字列です。
: :space
J
SON 形式の文字列のトークン間に挿入する文字列を指定します。デフォルトは空文字列です。
: :space_before
J
SON 形式の文字列中で JavaScript のオブジェクトを表す部分にある ':'...
...トは空文字列です。
: :object_nl
J
SON 形式の文字列中に現れる JavaScript のオブジェクトの行末に挿入する文字列を指定します。
デフォルトは空文字列です。
: :array_nl
J
SON 形式の文字列中に現れる JavaScript の配列の行末に挿...
...いて JSON 形式の文字列を生成します。
デフォルトは偽です。
: :buffer_initial_length
sets the initial length of the generator's internal buffer.

//emlist[例 Hash を指定][ruby]{
require "json"

j
son_state = JSON::State.new(indent: "\t")
j
son_state.class # => JSON::Ext...

JSON::State#to_h -> Hash (3006.0)

自身をハッシュに変換します。

...e "json"
require "pp"

j
son_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=>...

JSON::State#to_hash -> Hash (3006.0)

自身をハッシュに変換します。

...e "json"
require "pp"

j
son_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=>...

絞り込み条件を変える