るりまサーチ

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

別のキーワード

  1. bigdecimal/util to_d
  2. float to_d
  3. rsa d
  4. rsa d=
  5. matrix d

ライブラリ

キーワード

検索結果

JSON::State#depth=(depth) (6201.0)

This sets the maximum level of data structure nesting in the generated JSON to the integer depth, max_nesting = 0 if no maximum should be checked.

...This sets the maximum level of data structure nesting in the generated
JSON to the integer depth, max_nesting = 0 if no maximum should be
checked....

JSON::State#depth -> Integer (6101.0)

This integer returns the current depth of data structure nesting.

...This integer returns the current depth of data structure nesting....

JSON::State#indent -> String (6101.0)

インデントに使用する文字列を返します。

...インデントに使用する文字列を返します。

//emlist[例][ruby]{
require "json"

json_state = JSON::State.new(indent: "\t")
json_state.indent # => "\t"
JSON.generate({key1: "value1", key2: "value2"}, json_state)
# => "{\t\"key1\":\"value1\",\t\"key2\":\"value2\"}"
//}...

JSON::State#indent=(string) (6101.0)

インデントに使用する文字列をセットします。

...す。

//emlist[例][ruby]{
require "json"

json_state = JSON::State.new(indent: "\t")
json_state.indent # => "\t"
JSON.generate({key1: "value1", key2: "value2"}, json_state)
# => "{\t\"key1\":\"value1\",\t\"key2\":\"value2\"}"
json_state.indent = " "
JSON.generate({key1: "value1", key2: "value2"}...

JSON::State#quirks_mode -> bool (6101.0)

Returns true, if quirks mode is enabled. Otherwise returns false.

...Returns true, if quirks mode is enabled. Otherwise returns false....

絞り込み条件を変える

JSON::State#quirks_mode=(enable) (6101.0)

If set to true, enables the quirks_mode mode.

...If set to true, enables the quirks_mode mode....

JSON::State#quirks_mode? -> bool (6101.0)

Returns true, if quirks mode is enabled. Otherwise returns false.

...Returns true, if quirks mode is enabled. Otherwise returns false....

JSON::State#max_nesting=(depth) (101.0)

生成される JSON 形式の文字列のネストの深さの最大値をセットします。

...の値にゼロをセットすると、ネストの深さのチェックを行いません。

//emlist[例][ruby]{
require "json"

json_state = JSON::State.new(max_nesting: 2)
json_state.max_nesting # => 2
JSON.generate([[]], json_state)
json_state.max_nesting = 3
json_state.max_nesting...