別のキーワード
種類
- モジュール (220)
- インスタンスメソッド (121)
- 特異メソッド (11)
モジュール
-
JSON
:: Generator :: GeneratorMethods :: Array (11) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (11) -
JSON
:: Generator :: GeneratorMethods :: Float (11) -
JSON
:: Generator :: GeneratorMethods :: Hash (11) -
JSON
:: Generator :: GeneratorMethods :: Integer (11) -
JSON
:: Generator :: GeneratorMethods :: NilClass (11) -
JSON
:: Generator :: GeneratorMethods :: Object (11) -
JSON
:: Generator :: GeneratorMethods :: String (33) -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (11) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (11)
キーワード
- Array (22)
- Extend (22)
- FalseClass (22)
- Float (22)
- Hash (22)
- Integer (22)
- NilClass (22)
- Object (22)
- String (22)
- TrueClass (22)
-
json
_ create (11) -
to
_ json (99) -
to
_ json _ raw (11) -
to
_ json _ raw _ object (11)
検索結果
先頭5件
-
JSON
:: Generator :: GeneratorMethods :: Object # to _ json(state _ or _ hash = nil) -> String (6008.0) -
自身を to_s で文字列にした結果を JSON 形式の文字列に変換して返します。
...した結果を JSON 形式の文字列に変換して返します。
このメソッドはあるオブジェクトに to_json メソッドが定義されていない場合に使用する
フォールバックのためのメソッドです。
@param state_or_hash 生成する JSON 形式の文字......ruby]{
require "json"
class Person
attr :name, :age
def initialize(name, age)
@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 (6002.0) -
Alias of JSON::Generator::GeneratorMethods::Array
...Alias of JSON::Generator::GeneratorMethods::Array... -
JSON
:: Ext :: Generator :: GeneratorMethods :: FalseClass (6002.0) -
Alias of JSON::Generator::GeneratorMethods::FalseClass
...Alias of JSON::Generator::GeneratorMethods::FalseClass... -
JSON
:: Ext :: Generator :: GeneratorMethods :: Float (6002.0) -
Alias of JSON::Generator::GeneratorMethods::Float
...Alias of JSON::Generator::GeneratorMethods::Float... -
JSON
:: Ext :: Generator :: GeneratorMethods :: Hash (6002.0) -
Alias of JSON::Generator::GeneratorMethods::Hash
...Alias of JSON::Generator::GeneratorMethods::Hash... -
JSON
:: Ext :: Generator :: GeneratorMethods :: Integer (6002.0) -
Alias of JSON::Generator::GeneratorMethods::Integer
...Alias of JSON::Generator::GeneratorMethods::Integer... -
JSON
:: Ext :: Generator :: GeneratorMethods :: NilClass (6002.0) -
Alias of JSON::Generator::GeneratorMethods::NilClass
...Alias of JSON::Generator::GeneratorMethods::NilClass... -
JSON
:: Ext :: Generator :: GeneratorMethods :: Object (6002.0) -
Alias of JSON::Generator::GeneratorMethods::Object
...Alias of JSON::Generator::GeneratorMethods::Object... -
JSON
:: Ext :: Generator :: GeneratorMethods :: String (6002.0) -
Alias of JSON::Generator::GeneratorMethods::String
...Alias of JSON::Generator::GeneratorMethods::String... -
JSON
:: Ext :: Generator :: GeneratorMethods :: String :: Extend (6002.0) -
Alias of JSON::Generator::GeneratorMethods::String::Extend
...Alias of JSON::Generator::GeneratorMethods::String::Extend...