ライブラリ
- ビルトイン (12)
- json (60)
-
ripper
/ lexer (16)
クラス
-
JSON
:: State (48) - Random (12)
-
Ripper
:: Lexer (16)
モジュール
キーワード
-
buffer
_ initial _ length (12) - depth (12)
- depth= (12)
- lex (8)
-
max
_ nesting (12) - parse (8)
-
to
_ json (12)
検索結果
先頭5件
-
Random
# state -> Integer (24303.0) -
C言語レベルで定義されている構造体MTの状態を参照します。詳しくはrandom.c を参照してください。
...C言語レベルで定義されている構造体MTの状態を参照します。詳しくはrandom.c を参照してください。... -
JSON
:: Generator :: GeneratorMethods :: Integer # to _ json(state _ or _ hash = nil) -> String (15220.0) -
自身から生成した JSON 形式の文字列を返します。
...am state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
10.to... -
JSON
:: State # max _ nesting -> Integer (9256.0) -
生成される JSON 形式の文字列のネストの深さの最大値を返します。
...ません。
//emlist[例 ネストの深さチェックを行う][ruby]{
require "json"
json_state = JSON::State.new(max_nesting: 2)
json_state.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
JSON.generate([[[[[[[[[[]]]]]]]]]], json_state)
//}... -
JSON
:: State # buffer _ initial _ length -> Integer (9218.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 (9218.0) -
This integer returns the current depth of data structure nesting.
...
This integer returns the current depth of data structure nesting.... -
JSON
:: State # depth=(depth) (9217.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.... -
Ripper
:: Lexer # lex -> [[Integer , Integer] , Symbol , String , Ripper :: Lexer :: State] (604.0) -
自身の持つ Ruby プログラムをトークンに分割し、そのリストを返します。
自身の持つ Ruby プログラムをトークンに分割し、そのリストを返します。
ライブラリ内部で使用します。 Ripper.lex を使用してください。 -
Ripper
:: Lexer # parse -> [[Integer , Integer] , Symbol , String , Ripper :: Lexer :: State] (604.0) -
自身の持つ Ruby プログラムをトークンに分割し、そのリストを返します。た だし Ripper::Lexer#lex と違い、結果をソートしません。
自身の持つ Ruby プログラムをトークンに分割し、そのリストを返します。た
だし Ripper::Lexer#lex と違い、結果をソートしません。
ライブラリ内部で使用します。