種類
- インスタンスメソッド (60)
- モジュール (24)
- 文書 (4)
ライブラリ
- json (84)
クラス
-
JSON
:: State (48)
モジュール
キーワード
-
NEWS for Ruby 3
. 1 . 0 (4) -
buffer
_ initial _ length (12) - depth (12)
- depth= (12)
-
max
_ nesting (12) -
to
_ json (12)
検索結果
先頭5件
-
JSON
:: Generator :: GeneratorMethods :: Integer (30032.0) -
Integer に JSON で使用するインスタンスメソッドを追加するためのモジュールです。
...Integer に JSON で使用するインスタンスメソッドを追加するためのモジュールです。... -
JSON
:: Ext :: Generator :: GeneratorMethods :: Integer (27032.0) -
Alias of JSON::Generator::GeneratorMethods::Integer
...Alias of JSON::Generator::GeneratorMethods::Integer... -
JSON
:: Generator :: GeneratorMethods :: Integer # to _ json(state _ or _ hash = nil) -> String (24247.0) -
自身から生成した JSON 形式の文字列を返します。
...自身から生成した JSON 形式の文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を......指定します。
//emlist[例][ruby]{
require "json"
10.to_json # => "10"
//}... -
JSON
:: State # max _ nesting -> Integer (9307.0) -
生成される JSON 形式の文字列のネストの深さの最大値を返します。
... JSON 形式の文字列のネストの深さの最大値を返します。
この値がゼロである場合は、ネストの深さのチェックを行いません。
//emlist[例 ネストの深さチェックを行う][ruby]{
require "json"
json_state = JSON::State.new(max_nesting: 2)
json_s......tate.max_nesting # => 2
JSON.generate([[]], json_state)
JSON.generate([[[]]], json_state) # => JSON::NestingError
//}
//emlist[例 ネストの深さチェックを行わない][ruby]{
require "json"
json_state = JSON::State.new(max_nesting: 0)
json_state.max_nesting # => 0
J......SON.generate([[[[[[[[[[]]]]]]]]]], json_state)
//}... -
JSON
:: State # depth=(depth) (9232.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 # buffer _ initial _ length -> Integer (9217.0) -
This integer returns the current initial length of the buffer.
...
This integer returns the current initial length of the buffer.... -
JSON
:: State # depth -> Integer (9217.0) -
This integer returns the current depth of data structure nesting.
...
This integer returns the current depth of data structure nesting.... -
NEWS for Ruby 3
. 1 . 0 (108.0) -
NEWS for Ruby 3.1.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...無名にできるようになりました。 11256
//emlist{
def foo(&)
bar(&)
end
//}
* ピン演算子に式を書けるようになりました。 17411
//emlist{
Prime.each_cons(2).lazy.find_all{_1 in [n, ^(n + 2)]}.take(3).to_a
#=> [[3, 5], [5, 7], [11, 13]]
//}
* ピン演算子が......total_time は現在の設定を返します。 GC.stat[:time] または GC.stat(:time) は、測定された時間をミリ秒で返します。 10917
* GC.total_time が計測された時間をナノ秒で返します。 10917
* Integer
* 新規メソッド
* Integer.try_convert......date 3.2.2
* did_you_mean 1.6.1
* digest 3.1.0
* drb 2.1.0
* erb 2.2.3
* error_highlight 0.3.0
* etc 1.3.0
* fcntl 1.0.1
* fiddle 1.1.0
* fileutils 1.6.0
* find 0.1.1
* io-console 0.5.10
* io-wait 0.2.1
* ipaddr 1.2.3
* irb 1.4.1
* json 2....