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