2166件ヒット
[1-100件を表示]
(0.059秒)
別のキーワード
ライブラリ
クラス
- Array (36)
- BasicObject (156)
- Binding (12)
- CSV (48)
-
CSV
:: FieldInfo (36) -
CSV
:: Row (39) -
CSV
:: Table (12) - Class (24)
- Data (3)
- ERB (12)
- Enumerator (72)
-
Enumerator
:: Yielder (24) - Fiber (42)
-
Fiddle
:: Pointer (12) -
File
:: Stat (24) - Hash (60)
-
JSON
:: Parser (24) -
JSON
:: State (216) - Method (68)
- Module (108)
- Mutex (2)
-
Net
:: HTTPGenericRequest (12) - Object (438)
-
ObjectSpace
:: WeakMap (12) - OpenStruct (12)
- OptionParser (12)
- Prime (12)
-
Psych
:: ScalarScanner (12) -
Rake
:: TaskArguments (12) - Random (48)
- Range (14)
- Regexp (12)
- Set (24)
- StringIO (48)
- StringScanner (24)
- Struct (95)
- Thread (20)
-
Thread
:: Mutex (10) -
Thread
:: Queue (36) -
Thread
:: SizedQueue (36) - Time (12)
- TracePoint (19)
- UnboundMethod (24)
-
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ VARIANT (12)
モジュール
- Enumerable (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)
キーワード
- ! (12)
- != (12)
- << (12)
- <=> (12)
- == (24)
- === (20)
- [] (72)
- []= (12)
-
_ _ id _ _ (12) -
_ _ send _ _ (24) -
_ dump (12) - allocate (12)
-
allow
_ nan? (12) -
array
_ nl (12) -
array
_ nl= (12) - bind (12)
-
bind
_ call (12) -
body
_ stream (12) - bytes (12)
- call (24)
-
check
_ circular? (12) -
class
_ eval (24) -
class
_ exec (12) -
class
_ variable _ set (12) - configure (12)
- convert (36)
- deconstruct (12)
-
def
_ class (12) - default (24)
- delete (24)
- deq (24)
-
dev
_ major (12) - dig (10)
- display (12)
- divide (24)
- each (36)
-
each
_ entry (12) - entries (7)
-
enum
_ for (24) - extend (12)
- extended (12)
- feed (12)
- fetch (8)
- field (12)
- filter (7)
- handler= (12)
- header (12)
- indent (12)
- indent= (12)
- index (12)
- initialize (12)
-
initialize
_ copy (12) - inspect (12)
-
instance
_ eval (24) -
instance
_ exec (12) -
instance
_ of? (12) -
instance
_ variable _ defined? (12) -
instance
_ variable _ get (12) -
instance
_ variable _ set (12) -
instance
_ variables (12) -
is
_ a? (12) -
kind
_ of? (12) - line (12)
-
local
_ variable _ set (12) -
marshal
_ dump (12) - match (12)
- max (24)
-
max
_ nesting (12) -
max
_ nesting= (12) - merge (12)
-
method
_ missing (12) - methods (12)
- min (24)
-
module
_ eval (24) -
module
_ exec (12) -
object
_ nl (12) -
object
_ nl= (12) - pack (18)
- parameters (19)
- parse (12)
- pop (24)
- print (12)
- printf (12)
- puts (12)
- raise (18)
- rand (36)
-
rdev
_ major (12) - receiver (12)
- reject (12)
-
remove
_ instance _ variable (12) -
respond
_ to? (12) -
respond
_ to _ missing? (12) - resume (12)
-
return
_ value (12) -
scan
_ full (12) -
search
_ full (12) - select (12)
- send (24)
- shift (36)
-
singleton
_ class (12) -
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) - source (12)
- space (12)
- space= (12)
-
space
_ before (12) -
space
_ before= (12) - strftime (12)
- sum (18)
- synchronize (12)
- tainted? (6)
-
to
_ a (19) -
to
_ ary (12) -
to
_ enum (24) -
to
_ h (24) -
to
_ hash (24) -
to
_ int (12) -
to
_ json (120) -
to
_ proc (12) -
to
_ regexp (12) -
to
_ s (12) -
to
_ str (12) -
to
_ value (12) - tokenize (12)
- transfer (12)
-
unconverted
_ fields? (12) - value (12)
- values (12)
-
values
_ at (24) -
with
_ index (12) -
with
_ object (24) - write (12)
- yield (12)
検索結果
先頭5件
- Class
# new(*args , &block) -> object - JSON
:: Generator :: GeneratorMethods :: Object # to _ json(state _ or _ hash = nil) -> String - 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
-
Class
# new(*args , &block) -> object (18232.0) -
自身のインスタンスを生成して返します。 このメソッドの引数はブロック引数も含め Object#initialize に渡されます。
...ブロック引数も含め Object#initialize に渡されます。
new は Class#allocate でインスタンスを生成し、
Object#initialize で初期化を行います。
@param args Object#initialize に渡される引数を指定します。
@param block Object#initialize に渡される......ブロックを指定します。
//emlist[例][ruby]{
# Class クラスのインスタンス、C クラスを生成
C = Class.new # => C
# Class クラスのインスタンス、C クラスのインスタンスを生成
C.new # => #<C:0x00005623f8b4e458>
//}... -
JSON
:: Generator :: GeneratorMethods :: Object # to _ json(state _ or _ hash = nil) -> String (9125.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,......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
:: Generator :: GeneratorMethods :: Array # to _ json(state _ or _ hash = nil) -> String (9119.0) -
自身から生成した JSON 形式の文字列を返します。
...自身から生成した JSON 形式の文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を......指定します。
//emlist[例][ruby]{
require "json"
[1, 2, 3].to_json # => "[1,2,3]"
//}... -
JSON
:: Generator :: GeneratorMethods :: FalseClass # to _ json(state _ or _ hash = nil) -> String (9119.0) -
自身から生成した JSON 形式の文字列を返します。
...成した JSON 形式の文字列を返します。
"false" という文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引......数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
false.to_json # => "false"
//}... -
JSON
:: Generator :: GeneratorMethods :: Float # to _ json(state _ or _ hash = nil) -> String (9119.0) -
自身から生成した JSON 形式の文字列を返します。
...自身から生成した JSON 形式の文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を......指定します。
//emlist[例][ruby]{
require "json"
(1.0).to_json # => "1.0"
//}... -
JSON
:: Generator :: GeneratorMethods :: Hash # to _ json(state _ or _ hash = nil) -> String (9119.0) -
自身から生成した JSON 形式の文字列を返します。
...自身から生成した JSON 形式の文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を......指定します。
//emlist[例][ruby]{
require "json"
person = { "name" => "tanaka", "age" => 19 }
person.to_json # => "{\"name\":\"tanaka\",\"age\":19}"
//}... -
JSON
:: Generator :: GeneratorMethods :: Integer # to _ json(state _ or _ hash = nil) -> String (9119.0) -
自身から生成した JSON 形式の文字列を返します。
...自身から生成した JSON 形式の文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を......指定します。
//emlist[例][ruby]{
require "json"
10.to_json # => "10"
//}... -
JSON
:: Generator :: GeneratorMethods :: NilClass # to _ json(state _ or _ hash = nil) -> String (9119.0) -
自身から生成した JSON 形式の文字列を返します。
...成した JSON 形式の文字列を返します。
"null" という文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数......と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
nil.to_json # => "null"
//}... -
JSON
:: Generator :: GeneratorMethods :: String # to _ json(state _ or _ hash = nil) -> String (9119.0) -
自身から生成した JSON 形式の文字列を返します。
...から生成した JSON 形式の文字列を返します。
自身のエンコードは UTF-8 であるべきです。
"\u????" のように UTF-16 ビッグエンディアンでエンコードされた文字列を返すことがあります。
@param state_or_hash 生成する JSON 形式の文...... JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
puts "test".to_json # => "test"
puts '"'.to_json # => "\""
puts "\\".to_jso......n # => "\\"
puts "𤘩宮城".to_json(ascii_only: true) # => "\ud851\ude29\u5bae\u57ce"
//}...