685件ヒット
[201-300件を表示]
(0.075秒)
ライブラリ
- ビルトイン (117)
- csv (12)
- json (456)
- observer (12)
- openssl (12)
- rake (12)
-
ripper
/ lexer (16) -
rubygems
/ user _ interaction (48)
クラス
- CSV (12)
-
Encoding
:: Converter (12) -
Enumerator
:: Lazy (60) -
Gem
:: StreamUI (48) - IO (12)
-
JSON
:: State (348) -
OpenSSL
:: SSL :: SSLSocket (12) -
Rake
:: Application (12) - Random (12)
-
Ripper
:: Lexer (16) - Thread (21)
モジュール
-
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Observable (12)
キーワード
- [] (12)
- []= (12)
-
abort
_ on _ exception= (12) - alert (12)
-
alert
_ error (12) -
alert
_ warning (12) -
allow
_ nan? (12) -
array
_ nl (12) -
array
_ nl= (12) -
ascii
_ only? (12) -
buffer
_ initial _ length (12) -
buffer
_ initial _ length= (12) - changed (12)
-
check
_ circular? (12) - chunk (24)
- configure (12)
- depth (12)
- depth= (12)
- generate (12)
- indent (12)
- indent= (12)
-
insert
_ output (12) - lex (8)
-
max
_ nesting (12) -
max
_ nesting= (12) - merge (12)
-
object
_ nl (12) -
object
_ nl= (12) - parse (8)
-
quirks
_ mode (12) -
quirks
_ mode= (12) -
quirks
_ mode? (12) -
report
_ on _ exception= (9) - say (12)
-
slice
_ before (36) - space (12)
- space= (12)
-
space
_ before (12) -
space
_ before= (12) - sync= (24)
-
to
_ h (12) -
to
_ hash (12) -
to
_ json (108) -
tty
_ output= (12)
検索結果
先頭5件
-
JSON
:: State # indent -> String (3025.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 # to _ h -> Hash (3019.0) -
自身をハッシュに変換します。
...自身をハッシュに変換します。
//emlist[例][ruby]{
require "json"
require "pp"
json_state = JSON::State.new
pp json_state.to_h
# => {:indent=>"",
# :space=>"",
# :space_before=>"",
# :object_nl=>"",
# :array_nl=>"",
# :allow_nan=>false,
# :ascii_only=>false,... -
JSON
:: State # to _ hash -> Hash (3019.0) -
自身をハッシュに変換します。
...自身をハッシュに変換します。
//emlist[例][ruby]{
require "json"
require "pp"
json_state = JSON::State.new
pp json_state.to_h
# => {:indent=>"",
# :space=>"",
# :space_before=>"",
# :object_nl=>"",
# :array_nl=>"",
# :allow_nan=>false,
# :ascii_only=>false,... -
JSON
:: State # check _ circular? -> bool (3013.0) -
循環参照のチェックを行う場合は、真を返します。 そうでない場合は偽を返します。
...[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[0]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
s = JSON.state.new
begin
JSON.generate(a, s)
rescue JSON::NestingError => e
[e, s.max_nesting, s.check_circular?] # => [#<JSON::NestingError: nesting of 100......[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[0]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
s2 = JSON.state.new(max_nesting: 0)
json = JSON.generate(a, s2)
[json, s2.max_nesting, s2.check_circular?] # => ["[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[... -
JSON
:: State # [](name) -> object (3001.0) -
Return the value returned by method name.
Return the value returned by method name. -
JSON
:: State # []=(name , value) (3001.0) -
Set the attribute name to value.
Set the attribute name to value. -
JSON
:: State # ascii _ only? -> bool (3001.0) -
ASCII 文字列のみを用いて JSON 形式の文字列を生成する場合に真を返します。 そうでない場合に偽を返します。
ASCII 文字列のみを用いて JSON 形式の文字列を生成する場合に真を返します。
そうでない場合に偽を返します。 -
JSON
:: State # buffer _ initial _ length -> Integer (3001.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) (3001.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.