ライブラリ
- ビルトイン (222)
- csv (12)
- json (564)
- observer (12)
- openssl (12)
- rake (12)
-
ripper
/ lexer (24) -
rubygems
/ user _ interaction (48)
クラス
- CSV (12)
- Encoding (48)
-
Encoding
:: Converter (12) -
Enumerator
:: Lazy (60) -
Gem
:: StreamUI (48) - IO (12)
-
JSON
:: State (372) -
OpenSSL
:: SSL :: SSLSocket (12) -
Rake
:: Application (12) - Random (24)
- Ripper (8)
-
Ripper
:: Lexer (16) - Thread (42)
モジュール
- GC (24)
- JSON (60)
-
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)
キーワード
-
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 5 . 0 (8) -
STATELESS
_ ISO _ 2022 _ JP (12) -
STATELESS
_ ISO _ 2022 _ JP _ KDDI (12) - State (24)
-
Stateless
_ ISO _ 2022 _ JP (12) -
Stateless
_ ISO _ 2022 _ JP _ KDDI (12) - [] (12)
- []= (12)
-
abort
_ on _ exception= (24) - 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)
-
from
_ state (12) - generate (24)
- indent (12)
- indent= (12)
-
insert
_ output (12) -
jump
_ tag _ but _ local _ jump (12) -
latest
_ gc _ info (24) - lex (16)
-
max
_ nesting (12) -
max
_ nesting= (12) - merge (12)
- new (12)
-
object
_ nl (12) -
object
_ nl= (12) - parse (8)
-
pretty
_ generate (12) -
pretty
_ unparse (12) -
quirks
_ mode (12) -
quirks
_ mode= (12) -
quirks
_ mode? (12) -
rb
_ eval _ string _ protect (12) -
rb
_ eval _ string _ wrap (12) -
rb
_ jump _ tag (12) -
rb
_ load _ protect (12) -
rb
_ protect (12) -
rb
_ reserved _ word (12) -
report
_ on _ exception= (18) - 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) - unparse (12)
検索結果
先頭5件
-
JSON
:: State # space -> String (3048.0) -
JSON 形式の文字列のトークン間に挿入する文字列を返します。
...t[例][ruby]{
require "json"
json_state = JSON::State.new(space: "")
json_state.space # => ""
puts JSON.generate([1, 2, { name: "tanaka", age: 19 }], json_state)
# => [1,2,{"name":"tanaka","age":19}]
json_state = JSON::State.new(space: "\t")
json_state.space # => "\t"
puts......JSON.generate([1, 2, { name: "tanaka", age: 19 }], json_state)
# => [1,2,{"name": "tanaka","age": 19}]
//}... -
JSON
:: State # space _ before -> String (3048.0) -
JSON 形式の文字列中で JavaScript のオブジェクトを表す部分にある ':' の 前に挿入する文字列を返します。
...y]{
require "json"
json_state = JSON::State.new(space_before: "")
json_state.space_before # => ""
puts JSON.generate([1, 2, { name: "tanaka", age: 19 }], json_state)
# => [1,2,{"name":"tanaka","age":19}]
json_state = JSON::State.new(space_before: " ")
json_state.space_before......# => " "
puts JSON.generate([1, 2, { name: "tanaka", age: 19 }], json_state)
# => [1,2,{"name" :"tanaka","age" :19}]
//}... -
JSON
:: State # max _ nesting=(depth) (3042.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 # => 3
JSON.generate([[[[]]]], json_state) # => JSON::NestingError
//}... -
JSON
:: State # object _ nl=(string) (3042.0) -
JSON 形式の文字列中に現れる JavaScript のオブジェクトの行末に挿入する文字列をセットします。
...list[例][ruby]{
require "json"
json_state = JSON::State.new(object_nl: "")
json_state.object_nl # => ""
puts JSON.generate([1, 2, { name: "tanaka", age: 19 }], json_state)
# => [1,2,{"name":"tanaka","age":19}]
json_state.object_nl = "\n"
json_state.object_nl # => "\n"
puts......JSON.generate([1, 2, { name: "tanaka", age: 19 }], json_state)
# => [1,2,{
# "name":"tanaka",
# "age":19
# }]
//}... -
JSON
:: State # space=(string) (3042.0) -
JSON 形式の文字列のトークン間に挿入する文字列をセットします。
...//emlist[例][ruby]{
require "json"
json_state = JSON::State.new(space: "")
json_state.space # => ""
puts JSON.generate([1, 2, { name: "tanaka", age: 19 }], json_state)
# => [1,2,{"name":"tanaka","age":19}]
json_state.space = "\t"
json_state.space # => "\t"
puts JSON.gene......rate([1, 2, { name: "tanaka", age: 19 }], json_state)
# => [1,2,{"name": "tanaka","age": 19}]
//}... -
JSON
:: State # space _ before=(string) (3042.0) -
JSON 形式の文字列中で JavaScript のオブジェクトを表す部分にある ':' の 前に挿入する文字列をセットします。
...[例][ruby]{
require "json"
json_state = JSON::State.new(space_before: "")
json_state.space_before # => ""
puts JSON.generate([1, 2, { name: "tanaka", age: 19 }], json_state)
# => [1,2,{"name":"tanaka","age":19}]
json_state.space_before = " "
json_state.space_before # => "......"
puts JSON.generate([1, 2, { name: "tanaka", age: 19 }], json_state)
# => [1,2,{"name" :"tanaka","age" :19}]
//}... -
JSON
:: State # allow _ nan? -> bool (3036.0) -
NaN, Infinity, -Infinity を生成できる場合、真を返します。 そうでない場合は偽を返します。
...finity を生成できる場合、真を返します。
そうでない場合は偽を返します。
//emlist[例][ruby]{
require "json"
json_state = JSON::State.new({})
json_state.allow_nan? # => false
json_state = JSON::State.new(allow_nan: true)
json_state.allow_nan? # => true
//}
@see 4627... -
JSON
:: State # array _ nl -> String (3036.0) -
JSON の配列の後に出力する文字列を返します。
...JSON の配列の後に出力する文字列を返します。
//emlist[例][ruby]{
require "json"
json_state = JSON::State.new({})
json_state.array_nl # => ""
json_state = JSON::State.new(array_nl: "\n")
json_state.array_nl # => "\n"
//}... -
JSON
:: State # indent=(string) (3036.0) -
インデントに使用する文字列をセットします。
...quire "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)
# => "{ \"key1\"...