42件ヒット
[1-42件を表示]
(0.105秒)
種類
- インスタンスメソッド (36)
- モジュール関数 (6)
ライブラリ
- json (42)
クラス
-
JSON
:: State (36)
モジュール
- JSON (6)
キーワード
- load (3)
-
quirks
_ mode= (12) -
quirks
_ mode? (12) - restore (3)
検索結果
先頭5件
-
JSON
:: State # quirks _ mode -> bool (21102.0) -
Returns true, if quirks mode is enabled. Otherwise returns false.
...Returns true, if quirks mode is enabled. Otherwise returns false.... -
JSON
:: State # quirks _ mode=(enable) (9117.0) -
If set to true, enables the quirks_mode mode.
...If set to true, enables the quirks_mode mode.... -
JSON
:: State # quirks _ mode? -> bool (9102.0) -
Returns true, if quirks mode is enabled. Otherwise returns false.
...Returns true, if quirks mode is enabled. Otherwise returns false.... -
JSON
. # restore(source , proc = nil , options = {}) -> object (3106.0) -
与えられた JSON 形式の文字列を Ruby オブジェクトとしてロードして返します。
...son'
str=<<JSON
[1,2,3]
JSON
JSON.load(str) # => [1,2,3]
JSON.load(str, proc{|v| p v }) # => [1,2,3]
# 以下が表示される
# 1
# 2
# 3
# [1,2,3]
str=<<JSON
{ "a":1, "b":2, "c":3 }
JSON
JSON.load(str) # => {"a"=>1, "b"=>2, "c"=>3}
JSON.load(str, proc{|v|......には、to_str, to_io, read メソッドを持つオブジェクトも指定可能です。
@param proc Proc オブジェクトを指定します。
@param options オプションをハッシュで指定します。指定可能なオプションは以下の通りです。
: :max_nesting
入れ......た場合、JSON::NaN, JSON::Infinity,
JSON::MinusInfinity を生成することを許すようになります。
偽を指定した場合、これらの値を生成しようとすると例外が発生します。デフォルトは真です。
: :quirks_mode
真を指定するとパース時... -
JSON
. # load(source , proc = nil , options = {}) -> object (106.0) -
与えられた JSON 形式の文字列を Ruby オブジェクトとしてロードして返します。
...son'
str=<<JSON
[1,2,3]
JSON
JSON.load(str) # => [1,2,3]
JSON.load(str, proc{|v| p v }) # => [1,2,3]
# 以下が表示される
# 1
# 2
# 3
# [1,2,3]
str=<<JSON
{ "a":1, "b":2, "c":3 }
JSON
JSON.load(str) # => {"a"=>1, "b"=>2, "c"=>3}
JSON.load(str, proc{|v|......には、to_str, to_io, read メソッドを持つオブジェクトも指定可能です。
@param proc Proc オブジェクトを指定します。
@param options オプションをハッシュで指定します。指定可能なオプションは以下の通りです。
: :max_nesting
入れ......た場合、JSON::NaN, JSON::Infinity,
JSON::MinusInfinity を生成することを許すようになります。
偽を指定した場合、これらの値を生成しようとすると例外が発生します。デフォルトは真です。
: :quirks_mode
真を指定するとパース時...