632件ヒット
[1-100件を表示]
(0.149秒)
ライブラリ
- ビルトイン (129)
- json (420)
- rake (12)
-
ripper
/ lexer (24)
クラス
-
Encoding
:: Converter (12) -
Enumerator
:: Lazy (60) -
JSON
:: State (240) -
Rake
:: Application (12) - Ripper (8)
-
Ripper
:: Lexer (16) - Thread (33)
モジュール
- GC (24)
- JSON (60)
-
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 (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12)
キーワード
-
NEWS for Ruby 2
. 2 . 0 (11) - State (12)
-
abort
_ on _ exception= (24) -
allow
_ nan? (12) -
array
_ nl (12) -
array
_ nl= (12) -
check
_ circular? (12) - chunk (24)
- configure (12)
-
from
_ state (12) - generate (12)
- indent (12)
- indent= (12)
-
insert
_ output (12) -
latest
_ gc _ info (24) - lex (16)
-
max
_ nesting (12) -
max
_ nesting= (12) - merge (12)
- new (12)
-
object
_ nl (12) -
object
_ nl= (12) - parse (8)
-
pretty
_ generate (12) -
pretty
_ unparse (12) -
rb
_ eval _ string _ protect (12) -
rb
_ jump _ tag (12) -
rb
_ protect (12) -
report
_ on _ exception= (9) -
slice
_ before (36) - space (12)
- space= (12)
-
space
_ before (12) -
space
_ before= (12) -
to
_ h (12) -
to
_ hash (12) -
to
_ json (108) -
tty
_ output= (12) - unparse (12)
検索結果
先頭5件
- JSON
. state -> JSON :: Ext :: Generator :: State - JSON
:: State . from _ state(options) -> JSON :: State - JSON
:: Generator :: GeneratorMethods :: Array # to _ json(state _ or _ hash = nil) -> String - JSON
:: Generator :: GeneratorMethods :: FalseClass # to _ json(state _ or _ hash = nil) -> String - JSON
:: Generator :: GeneratorMethods :: Float # to _ json(state _ or _ hash = nil) -> String
-
JSON
. state -> JSON :: Ext :: Generator :: State (24420.0) -
JSON ライブラリがジェネレータの状態を表すクラスとして使用するクラスを返します。
...JSON ライブラリがジェネレータの状態を表すクラスとして使用するクラスを返します。
//emlist[例][ruby]{
require "json"
JSON.state # => JSON::Ext::Generator::State
//}... -
JSON
:: State . from _ state(options) -> JSON :: State (18562.0) -
与えられた options によって生成した JSON::State のインスタンスを返します。
...えられた options によって生成した JSON::State のインスタンスを返します。
@param options JSON::State のインスタンスか、ハッシュを指定します。
@return options がハッシュである場合は、それによって初期化した JSON::State を......。options が JSON::State のインスタンスである場合は単に
options を返します。いずれでも無い場合は、何も設定されていない JSON::State の
インスタンスを返します。
//emlist[例 Hash を指定][ruby]{
require "json"
json_state = JS......:State.from_state(indent: "\t")
json_state.class # => JSON::Ext::Generator::State
json_state.indent # => "\t"
//}
//emlist[例 JSON::State を指定][ruby]{
require "json"
json_state = JSON::State.from_state(indent: "\t")
# JSON を出力する何らかの処理を実行する
copy = JSON::State.... -
JSON
:: Generator :: GeneratorMethods :: Array # to _ json(state _ or _ hash = nil) -> String (12225.0) -
自身から生成した JSON 形式の文字列を返します。
...。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "jso......n"
[1, 2, 3].to_json # => "[1,2,3]"
//}... -
JSON
:: Generator :: GeneratorMethods :: FalseClass # to _ json(state _ or _ hash = nil) -> String (12225.0) -
自身から生成した JSON 形式の文字列を返します。
... state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
false.t... -
JSON
:: Generator :: GeneratorMethods :: Float # to _ json(state _ or _ hash = nil) -> String (12225.0) -
自身から生成した JSON 形式の文字列を返します。
... state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
(1.0).t... -
JSON
:: Generator :: GeneratorMethods :: Hash # to _ json(state _ or _ hash = nil) -> String (12225.0) -
自身から生成した JSON 形式の文字列を返します。
...。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "jso......n"
person = { "name" => "tanaka", "age" => 19 }
person.to_json # => "{\"name\":\"tanaka\",\"age\":19}"
//}... -
JSON
:: Generator :: GeneratorMethods :: Integer # to _ json(state _ or _ hash = nil) -> String (12225.0) -
自身から生成した JSON 形式の文字列を返します。
...am state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
10.to... -
JSON
:: Generator :: GeneratorMethods :: NilClass # to _ json(state _ or _ hash = nil) -> String (12225.0) -
自身から生成した JSON 形式の文字列を返します。
...m state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
nil.to... -
JSON
:: Generator :: GeneratorMethods :: Object # to _ json(state _ or _ hash = nil) -> String (12225.0) -
自身を to_s で文字列にした結果を JSON 形式の文字列に変換して返します。
...自身を to_s で文字列にした結果を JSON 形式の文字列に変換して返します。
このメソッドはあるオブジェクトに to_json メソッドが定義されていない場合に使用する
フォールバックのためのメソッドです。
@param state_or_hash 生......:State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
class Person
attr :name, :age
def initialize(name, age)
@name, @age = name, age
end
end
tanaka = Person.new("t......anaka", 29)
tanaka.to_json # => "\"#<Person:0x00007ffdec0167c8>\""
tanaka.method(:to_json).owner # => JSON::Ext::Generator::GeneratorMethods::Object
//}...