るりまサーチ

最速Rubyリファレンスマニュアル検索!
352件ヒット [1-100件を表示] (0.038秒)

別のキーワード

  1. irb/input-method gets
  2. irb/input-method new
  3. _builtin define_method
  4. irb/input-method encoding
  5. irb/input-method readable_atfer_eof?

検索結果

<< 1 2 3 ... > >>

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...

絞り込み条件を変える

<< 1 2 3 ... > >>