5013件ヒット
[1-100件を表示]
(0.122秒)
別のキーワード
ライブラリ
- ビルトイン (3774)
- csv (135)
- drb (12)
- erb (12)
- fiber (8)
- fiddle (12)
- json (396)
-
json
/ add / bigdecimal (12) -
json
/ add / complex (12) -
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / range (12) -
json
/ add / rational (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / time (12) - matrix (120)
- mkmf (12)
-
net
/ http (12) - openssl (12)
- optparse (24)
- ostruct (12)
- pathname (12)
- pp (24)
- prime (12)
- psych (84)
- rake (36)
-
ripper
/ filter (12) - set (36)
- socket (12)
- stringio (48)
- strscan (24)
- thread (12)
- timeout (16)
- win32ole (24)
クラス
- Addrinfo (12)
- Array (530)
- BasicObject (168)
- BigDecimal (12)
- Binding (47)
- CSV (48)
-
CSV
:: FieldInfo (36) -
CSV
:: Row (39) -
CSV
:: Table (12) - Class (36)
- Complex (36)
-
DRb
:: DRbUnknown (12) - Data (3)
- Date (12)
- DateTime (12)
- ERB (12)
- Enumerator (96)
-
Enumerator
:: Lazy (35) -
Enumerator
:: Yielder (24) - Exception (12)
- Fiber (42)
-
Fiddle
:: Pointer (12) -
File
:: Stat (24) - FrozenError (6)
- Hash (253)
- IO (12)
- Integer (18)
-
JSON
:: Parser (24) -
JSON
:: State (216) - Matrix (120)
- Method (68)
- Module (180)
- Mutex (2)
-
Net
:: HTTPGenericRequest (12) - Numeric (24)
- Object (801)
-
ObjectSpace
:: WeakMap (12) -
OpenSSL
:: ASN1 :: ASN1Data (12) - OpenStruct (12)
- OptionParser (12)
- Pathname (12)
- Prime (12)
- Proc (12)
-
Psych
:: Nodes :: Node (24) -
Psych
:: ScalarScanner (12) -
Psych
:: Visitors :: YAMLTree (24) -
Rake
:: TaskArguments (12) - Random (48)
- Range (262)
- Rational (12)
- Regexp (24)
-
Ripper
:: Filter (12) -
RubyVM
:: InstructionSequence (12) - Set (48)
- String (105)
- StringIO (48)
- StringScanner (24)
- Struct (95)
- Thread (20)
-
Thread
:: Mutex (10) -
Thread
:: Queue (36) -
Thread
:: SizedQueue (36) - Time (48)
- TracePoint (55)
- UnboundMethod (24)
- UncaughtThrowError (22)
-
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ VARIANT (12)
モジュール
- Comparable (15)
- Enumerable (637)
-
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) - Kernel (88)
-
OptionParser
:: Arguable (12) -
Rake
:: Cloneable (24)
キーワード
- ! (12)
- != (12)
- !~ (12)
- << (36)
- <=> (12)
- == (24)
- === (44)
- =~ (9)
- JSON (12)
- [] (114)
- []= (12)
-
_ _ id _ _ (12) -
_ _ send _ _ (24) -
_ dump (12) - adjugate (12)
- allocate (12)
-
allow
_ nan? (12) - append (8)
-
arg
_ config (12) -
array
_ nl (12) -
array
_ nl= (12) - at (12)
- begin (12)
- bind (12)
-
bind
_ call (12) -
body
_ stream (12) - bsearch (36)
- bytes (12)
- call (24)
-
check
_ circular? (12) -
chunk
_ while (12) - clamp (15)
- class (12)
-
class
_ eval (24) -
class
_ exec (12) -
class
_ variable _ get (12) -
class
_ variable _ set (12) - clone (24)
-
cofactor
_ expansion (12) - collect (24)
-
collect
_ concat (24) - column (24)
- component (12)
- configure (12)
- conj (36)
- conjugate (36)
-
connect
_ from (12) -
const
_ get (12) -
const
_ set (12) - convert (36)
- count (24)
- cover? (12)
- cycle (24)
- deconstruct (12)
-
def
_ class (12) - default (24)
-
define
_ singleton _ method (24) - delete (72)
-
delete
_ at (12) - deq (24)
- detect (12)
-
dev
_ major (12) - dig (30)
- disable (12)
- disjoint? (12)
- display (12)
- divide (24)
- dup (24)
- each (36)
-
each
_ entry (12) -
each
_ with _ object (24) - element (12)
- enable (12)
- encode (36)
- end (12)
- entries (19)
-
enum
_ for (24) - eql? (12)
- equal? (24)
- eval (24)
- extend (12)
-
extend
_ object (12) - extended (12)
- feed (12)
- fetch (80)
-
fetch
_ values (20) - field (12)
- filter (21)
-
filter
_ map (6) - find (12)
-
find
_ all (12) -
find
_ index (12) - first (48)
-
flat
_ map (24) - force (12)
- freeze (12)
- frozen? (12)
- getlocal (24)
- grep (24)
-
grep
_ v (24) -
group
_ by (12) - handler= (12)
- hash (12)
- header (12)
- include? (12)
- indent (12)
- indent= (12)
- index (19)
- initialize (12)
-
initialize
_ copy (12) - inject (36)
- 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) - itself (12)
- jj (12)
- join (24)
-
json
_ creatable? (12) - key (12)
- keys (12)
-
kind
_ of? (12) -
laplace
_ expansion (12) - last (36)
- line (12)
- ljust (12)
-
local
_ variable _ get (12) -
local
_ variable _ set (12) - map (24)
-
marshal
_ dump (12) -
marshal
_ load (12) - match (24)
- max (88)
-
max
_ by (12) -
max
_ nesting (12) -
max
_ nesting= (12) - member? (12)
- merge (12)
- method (12)
-
method
_ missing (12) - methods (12)
- min (88)
-
min
_ by (12) - minmax (48)
-
minmax
_ by (12) -
module
_ eval (24) -
module
_ exec (12) - new (12)
- next (12)
- none? (19)
-
object
_ id (12) -
object
_ nl (12) -
object
_ nl= (12) - one? (19)
- pack (21)
- parameters (31)
- parse (24)
- partition (12)
- peek (12)
- pop (36)
- prepend (8)
-
pretty
_ print (12) -
pretty
_ print _ cycle (12) - print (12)
- printf (12)
-
psych
_ y (12) -
public
_ method (12) -
public
_ send (24) - push (24)
- putc (12)
- puts (12)
- raise (18)
- rand (36)
- rassoc (12)
-
rdev
_ major (12) - receiver (29)
- reduce (36)
- reject (96)
- reject! (60)
- reload (12)
-
remove
_ class _ variable (12) -
remove
_ const (12) -
remove
_ instance _ variable (12) -
respond
_ to? (12) -
respond
_ to _ missing? (12) - resume (12)
-
return
_ value (12) - rjust (12)
- sample (24)
-
scan
_ full (12) -
search
_ full (12) - select (36)
- self (12)
- send (24)
- shift (48)
-
singleton
_ class (12) -
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) - slice (12)
- slice! (12)
-
slice
_ when (23) - sort (24)
-
sort
_ by (12) - source (12)
- space (12)
- space= (12)
-
space
_ before (12) -
space
_ before= (12) - store (12)
- strftime (12)
- sum (42)
- synchronize (12)
- tag (11)
- taint (9)
- tainted? (9)
- tap (12)
- then (14)
- timeout (16)
-
to
_ a (43) -
to
_ ary (12) -
to
_ c (12) -
to
_ enum (24) -
to
_ h (24) -
to
_ hash (24) -
to
_ int (12) -
to
_ json (228) -
to
_ proc (12) -
to
_ regexp (12) -
to
_ ruby (12) -
to
_ s (12) -
to
_ str (12) -
to
_ value (12) - tokenize (12)
- transfer (12)
- transform (12)
- trust (9)
-
unconverted
_ fields? (12) - unpack (12)
- unpack1 (9)
- unshift (12)
- untaint (9)
- untrust (9)
- untrusted? (9)
- value (35)
- values (24)
-
values
_ at (24) -
with
_ index (12) -
with
_ object (24) - write (12)
- y (12)
- yield (12)
-
yield
_ self (16) - zip (24)
検索結果
先頭5件
-
Kernel
# j(*objects) -> nil (18114.0) -
与えられたオブジェクトを JSON 形式の文字列で標準出力に一行で出力します。
...与えられたオブジェクトを JSON 形式の文字列で標準出力に一行で出力します。
@param objects JSON 形式で出力したいオブジェクトを指定します。
//emlist[例][ruby]{
require "json"
j([1,2,{"name" => "tanaka","age" => 19}])
# => [1,2,{"name":"tanaka","... -
Object
# object _ id -> Integer (9137.0) -
各オブジェクトに対して一意な整数を返します。あるオブジェクトに対し てどのような整数が割り当てられるかは不定です。
...ジェクトに対し
てどのような整数が割り当てられるかは不定です。
Rubyでは、(Garbage Collectされていない)アクティブなオブジェクト間で
重複しない整数(object_id)が各オブジェクトにひとつずつ割り当てられています。この......じ object_id になります。
これは、Immutable ならば複数の場所から参照されても`破壊的操作'による問題が発生しないので、
同じ内容のインスタンスを複数生成しないという内部実装が理由です。
//emlist[][ruby]{
p "ruby".object_id #......=> 60
p "ruby".object_id #=> 80
p [].object_id #=> 100
p [].object_id #=> 120
p :ruby.object_id #=> 710428
p :ruby.object_id #=> 710428
p 11.object_id #=> 23
p 11.object_id #=> 23
p true.object_id #=> 20
p true.object_id #=> 20
//}
@see Object#equal?,Symbol... -
JSON
:: Generator :: GeneratorMethods :: Array # to _ json(state _ or _ hash = nil) -> String (9107.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 (9107.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 (9107.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 (9107.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 (9107.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 (9107.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 :: Object # to _ json(state _ or _ hash = nil) -> String (9107.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
//}...