ライブラリ
- ビルトイン (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件
-
Encoding
:: Stateless _ ISO _ 2022 _ JP _ KDDI -> Encoding (6100.0) -
stateless-ISO-2022-JP-KDDI エンコーディングです。
...stateless-ISO-2022-JP-KDDI エンコーディングです。
stateless-ISO-2022-JP の亜種です。
KDDI の携帯電話で使われる絵文字が含まれています。
@see https://www.au.com/ezfactory/tec/spec/img/typeD.pdf... -
JSON
:: Ext :: Generator :: State (6016.0) -
Alias of JSON::State
...Alias of JSON::State... -
JSON
:: State (6000.0) -
Ruby オブジェクトから JSON 形式の文字列を生成する間、 JSON 形式の文字列を生成するための設定を保持しておくために使用するクラスです。
Ruby オブジェクトから JSON 形式の文字列を生成する間、
JSON 形式の文字列を生成するための設定を保持しておくために使用するクラスです。 -
JSON
:: State . new(options = {}) -> JSON :: State (3167.0) -
自身を初期化します。
...require "json"
json_state = JSON::State.new(indent: "\t")
json_state.class # => JSON::Ext::Generator::State
json_state.indent # => "\t"
//}
//emlist[例 JSON::State を指定][ruby]{
require "json"
json_state = JSON::State.new(indent: "\t")
copy = JSON::State.new(json_state)
copy.class # => JS... -
JSON
:: State # configure(options = {}) -> self (3054.0) -
与えられたハッシュで自身を設定します。
...ュのキーについては JSON::State.new を参照してください。
@param options このオブジェクトの設定をするためのハッシュを指定します。
//emlist[例][ruby]{
require "json"
json_state = JSON::State.new(indent: "\t")
json_state.indent # => "\t"
JSON.generate({......y1: "value1", key2: "value2"}, json_state)
# => "{\t\"key1\":\"value1\",\t\"key2\":\"value2\"}"
json_state.configure(indent: " ")
json_state.indent # => " "
JSON.generate({key1: "value1", key2: "value2"}, json_state)
# => "{ \"key1\":\"value1\", \"key2\":\"value2\"}"
//}
@see JSON::State.new... -
JSON
:: State # max _ nesting -> Integer (3054.0) -
生成される JSON 形式の文字列のネストの深さの最大値を返します。
...n"
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 # merge(options = {}) -> self (3054.0) -
与えられたハッシュで自身を設定します。
...ュのキーについては JSON::State.new を参照してください。
@param options このオブジェクトの設定をするためのハッシュを指定します。
//emlist[例][ruby]{
require "json"
json_state = JSON::State.new(indent: "\t")
json_state.indent # => "\t"
JSON.generate({......y1: "value1", key2: "value2"}, json_state)
# => "{\t\"key1\":\"value1\",\t\"key2\":\"value2\"}"
json_state.configure(indent: " ")
json_state.indent # => " "
JSON.generate({key1: "value1", key2: "value2"}, json_state)
# => "{ \"key1\":\"value1\", \"key2\":\"value2\"}"
//}
@see JSON::State.new... -
JSON
:: State # object _ nl -> String (3048.0) -
JSON 形式の文字列中に現れる JavaScript のオブジェクトの行末に挿入する文字列を返します。
...[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 = JSON::State.new(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 (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}]
//}...