88件ヒット
[1-88件を表示]
(0.048秒)
種類
- インスタンスメソッド (66)
- モジュール (22)
クラス
- Class (11)
-
JSON
:: State (44)
キーワード
- FalseClass (22)
-
allow
_ nan? (11) -
check
_ circular? (11) -
json
_ creatable? (11) -
quirks
_ mode (11) -
quirks
_ mode? (11) -
to
_ json (11)
検索結果
先頭5件
-
JSON
:: Ext :: Generator :: GeneratorMethods :: FalseClass (12002.0) -
Alias of JSON::Generator::GeneratorMethods::FalseClass
...Alias of JSON::Generator::GeneratorMethods::FalseClass... -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12002.0) -
FalseClass に JSON で使用するインスタンスメソッドを追加するためのモジュールです。
...FalseClass に JSON で使用するインスタンスメソッドを追加するためのモジュールです。... -
JSON
:: Generator :: GeneratorMethods :: FalseClass # to _ json(state _ or _ hash = nil) -> String (6120.0) -
自身から生成した JSON 形式の文字列を返します。
...ら生成した JSON 形式の文字列を返します。
"false" という文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new......の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
false.to_json # => "false"
//}... -
Class
# json _ creatable? -> bool (6108.0) -
シリアライズされた JSON 形式の文字列から、インスタンスを作成するのにこのクラスを使用できる場合は 真を返します。そうでない場合は、偽を返します。
...シリアライズされた JSON 形式の文字列から、インスタンスを作成するのにこのクラスを使用できる場合は
真を返します。そうでない場合は、偽を返します。
このメソッドが真を返すクラスは json_create というメソッドを実......装していなければなりません。
また json_create の第一引数は必要なデータを含むハッシュを期待しています。
//emlist[例][ruby]{
require "json"
String.json_creatable? # => true
Dir.json_creatable? # => false
//}... -
JSON
:: State # allow _ nan? -> bool (6108.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 # check _ circular? -> bool (6108.0) -
循環参照のチェックを行う場合は、真を返します。 そうでない場合は偽を返します。
...//emlist[例 ネストをチェックするケース][ruby]{
require "json"
a = [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[0]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
s = JSON.sta......te.new
begin
JSON.generate(a, s)
rescue JSON::NestingError => e
[e, s.max_nesting, s.check_circular?] # => [#<JSON::NestingError: nesting of 100 is too deep>, 100, true]
end
//}
//emlist[例 ネストをチェックしないケース][ruby]{
require "json"
a = [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[......0)
json = JSON.generate(a, s2)
[json, s2.max_nesting, s2.check_circular?] # => ["[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[0]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]", 0, false]... -
JSON
:: State # quirks _ mode -> bool (118.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? -> bool (118.0) -
Returns true, if quirks mode is enabled. Otherwise returns false.
...Returns true, if quirks mode is enabled. Otherwise returns false....