408件ヒット
[1-100件を表示]
(0.020秒)
別のキーワード
種類
- モジュール (240)
- インスタンスメソッド (156)
- 特異メソッド (12)
クラス
-
JSON
:: State (24)
モジュール
-
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 (36) -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12)
キーワード
- Array (24)
- Extend (24)
- FalseClass (24)
- Float (24)
- Hash (24)
- Integer (24)
- NilClass (24)
- Object (24)
- String (24)
- TrueClass (24)
- [] (12)
- generate (12)
-
json
_ create (12) -
to
_ json (108) -
to
_ json _ raw (12) -
to
_ json _ raw _ object (12)
検索結果
先頭5件
-
JSON
:: Generator :: GeneratorMethods :: Object # to _ json(state _ or _ hash = nil) -> String (3008.0) -
自身を to_s で文字列にした結果を JSON 形式の文字列に変換して返します。
...した結果を JSON 形式の文字列に変換して返します。
このメソッドはあるオブジェクトに to_json メソッドが定義されていない場合に使用する
フォールバックのためのメソッドです。
@param state_or_hash 生成する JSON 形式の文字......をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
class Person
attr :name, :age
def initialize(name, ag......e)
@name, @age = name, age
end
end
tanaka = Person.new("tanaka", 29)
tanaka.to_json # => "\"#<Person:0x00007ffdec0167c8>\""
tanaka.method(:to_json).owner # => JSON::Ext::Generator::GeneratorMethods::Object
//}... -
JSON
:: Ext :: Generator :: GeneratorMethods :: Array (3002.0) -
Alias of JSON::Generator::GeneratorMethods::Array
...Alias of JSON::Generator::GeneratorMethods::Array... -
JSON
:: Ext :: Generator :: GeneratorMethods :: FalseClass (3002.0) -
Alias of JSON::Generator::GeneratorMethods::FalseClass
...Alias of JSON::Generator::GeneratorMethods::FalseClass... -
JSON
:: Ext :: Generator :: GeneratorMethods :: Float (3002.0) -
Alias of JSON::Generator::GeneratorMethods::Float
...Alias of JSON::Generator::GeneratorMethods::Float... -
JSON
:: Ext :: Generator :: GeneratorMethods :: Hash (3002.0) -
Alias of JSON::Generator::GeneratorMethods::Hash
...Alias of JSON::Generator::GeneratorMethods::Hash... -
JSON
:: Ext :: Generator :: GeneratorMethods :: Integer (3002.0) -
Alias of JSON::Generator::GeneratorMethods::Integer
...Alias of JSON::Generator::GeneratorMethods::Integer... -
JSON
:: Ext :: Generator :: GeneratorMethods :: NilClass (3002.0) -
Alias of JSON::Generator::GeneratorMethods::NilClass
...Alias of JSON::Generator::GeneratorMethods::NilClass... -
JSON
:: Ext :: Generator :: GeneratorMethods :: Object (3002.0) -
Alias of JSON::Generator::GeneratorMethods::Object
...Alias of JSON::Generator::GeneratorMethods::Object... -
JSON
:: Ext :: Generator :: GeneratorMethods :: String (3002.0) -
Alias of JSON::Generator::GeneratorMethods::String
...Alias of JSON::Generator::GeneratorMethods::String...