10183件ヒット
[1-100件を表示]
(0.128秒)
別のキーワード
ライブラリ
- ビルトイン (3279)
- benchmark (12)
- bigdecimal (240)
-
bigdecimal
/ util (91) -
cgi
/ core (36) -
cgi
/ html (48) -
cgi
/ session (144) -
cgi
/ session / pstore (48) - csv (120)
- date (12)
- dbm (12)
- delegate (192)
- digest (36)
- drb (12)
-
drb
/ timeridconv (12) - erb (36)
- fiddle (156)
-
fiddle
/ import (48) - forwardable (96)
- gdbm (48)
- getoptlong (192)
- ipaddr (60)
-
irb
/ context (36) -
irb
/ ext / history (12) -
irb
/ ext / save-history (48) -
irb
/ frame (24) - json (144)
-
json
/ add / bigdecimal (12) -
json
/ add / complex (12) -
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / ostruct (12) -
json
/ add / range (12) -
json
/ add / rational (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / symbol (12) -
json
/ add / time (12) - kconv (96)
- logger (12)
- matrix (307)
-
minitest
/ unit (2) - mkmf (36)
- monitor (12)
-
net
/ http (36) -
net
/ imap (72) -
net
/ pop (12) -
net
/ smtp (36) - openssl (1040)
- optparse (228)
- ostruct (24)
- pathname (334)
- prime (324)
- pstore (36)
- psych (72)
- rake (144)
-
rdoc
/ context (24) -
rdoc
/ generator / darkfish (24) -
rdoc
/ generator / json _ index (12) -
rdoc
/ generator / ri (24) -
rdoc
/ markup (12) -
rdoc
/ markup / formatter (12) -
rdoc
/ parser / changelog (12) -
rdoc
/ top _ level (60) - resolv (60)
- rexml (12)
-
rexml
/ document (204) -
ripper
/ lexer (12) - rss (96)
-
rubygems
/ commands / update _ command (12) -
rubygems
/ dependency _ installer (12) -
rubygems
/ dependency _ list (12) -
rubygems
/ indexer (36) -
rubygems
/ installer (12) -
rubygems
/ package / tar _ header (12) -
rubygems
/ package / tar _ reader / entry (12) -
rubygems
/ platform (24) -
rubygems
/ requirement (12) -
rubygems
/ source _ index (12) -
rubygems
/ specification (36) -
rubygems
/ validator (60) -
rubygems
/ version (24) - scanf (6)
- sdbm (24)
- set (28)
- shell (18)
-
shell
/ command-processor (12) -
shell
/ filter (24) - singleton (24)
- socket (96)
- stringio (112)
- tsort (22)
- uri (132)
- weakref (12)
-
webrick
/ httpauth / authenticator (36) -
webrick
/ httprequest (12) -
webrick
/ httpresponse (48) -
webrick
/ httputils (12) -
webrick
/ httpversion (12) -
webrick
/ log (72) -
webrick
/ server (24) -
win32
/ registry (108) - win32ole (144)
-
yaml
/ dbm (12) - zlib (120)
クラス
-
ARGF
. class (294) - Addrinfo (36)
- Array (153)
- BasicObject (48)
-
Benchmark
:: Tms (12) - BigDecimal (276)
- Bignum (12)
-
CGI
:: Cookie (36) -
CGI
:: Session :: FileStore (48) -
CGI
:: Session :: MemoryStore (48) -
CGI
:: Session :: NullStore (48) -
CGI
:: Session :: PStore (48) - CSV (36)
-
CSV
:: FieldInfo (12) -
CSV
:: Row (36) -
CSV
:: Table (24) - Complex (48)
- DBM (12)
-
DRb
:: DRbIdConv (12) -
DRb
:: TimerIdConv (12) - Data (6)
- Date (24)
- DateTime (12)
- Delegator (168)
-
Digest
:: Base (36) - Dir (24)
- ERB (36)
- Encoding (24)
-
Encoding
:: Converter (48) - Enumerator (60)
-
Enumerator
:: ArithmeticSequence (28) -
Enumerator
:: Chain (28) -
Enumerator
:: Lazy (94) - Exception (56)
- FalseClass (24)
-
Fiddle
:: CStruct (12) -
Fiddle
:: Closure (12) -
Fiddle
:: Function (24) -
Fiddle
:: Handle (12) -
Fiddle
:: Pointer (108) - File (24)
- Fixnum (6)
- Float (96)
- GDBM (48)
-
Gem
:: Commands :: UpdateCommand (12) -
Gem
:: DependencyInstaller (12) -
Gem
:: DependencyList (12) -
Gem
:: Indexer (36) -
Gem
:: Installer (12) -
Gem
:: Package :: TarHeader (12) -
Gem
:: Package :: TarReader :: Entry (12) -
Gem
:: Platform (24) -
Gem
:: Requirement (12) -
Gem
:: SourceIndex (12) -
Gem
:: Specification (36) -
Gem
:: Validator (60) -
Gem
:: Version (24) - GetoptLong (192)
- Hash (127)
- IO (54)
- IPAddr (60)
-
IRB
:: Context (72) -
IRB
:: Frame (24) - Integer (192)
-
JSON
:: State (12) - Logger (12)
- MatchData (122)
- Matrix (120)
-
Matrix
:: EigenvalueDecomposition (84) - Method (24)
- Module (60)
-
MonitorMixin
:: ConditionVariable (12) - NameError (12)
-
Net
:: HTTPGenericRequest (24) -
Net
:: HTTPResponse (12) -
Net
:: IMAP (60) -
Net
:: IMAP :: Envelope (12) -
Net
:: POPMail (12) -
Net
:: SMTP (36) - NilClass (31)
- Numeric (36)
- Object (192)
-
OpenSSL
:: ASN1 :: ASN1Data (12) -
OpenSSL
:: BN (56) -
OpenSSL
:: Config (12) -
OpenSSL
:: HMAC (36) -
OpenSSL
:: Netscape :: SPKI (48) -
OpenSSL
:: OCSP :: BasicResponse (12) -
OpenSSL
:: OCSP :: Request (24) -
OpenSSL
:: OCSP :: Response (12) -
OpenSSL
:: PKCS12 (12) -
OpenSSL
:: PKCS7 (48) -
OpenSSL
:: PKey :: DH (60) -
OpenSSL
:: PKey :: DSA (96) -
OpenSSL
:: PKey :: EC (36) -
OpenSSL
:: PKey :: EC :: Group (72) -
OpenSSL
:: PKey :: RSA (96) -
OpenSSL
:: SSL :: Session (36) -
OpenSSL
:: X509 :: Attribute (12) -
OpenSSL
:: X509 :: CRL (48) -
OpenSSL
:: X509 :: Certificate (48) -
OpenSSL
:: X509 :: Extension (36) -
OpenSSL
:: X509 :: ExtensionFactory (36) -
OpenSSL
:: X509 :: Name (36) -
OpenSSL
:: X509 :: Request (48) -
OpenSSL
:: X509 :: Store (36) -
OpenSSL
:: X509 :: StoreContext (48) - OpenStruct (36)
- OptionParser (192)
-
OptionParser
:: ParseError (24) - PStore (36)
- Pathname (334)
- Prime (48)
-
Prime
:: EratosthenesGenerator (36) -
Prime
:: Generator23 (36) -
Prime
:: PseudoPrimeGenerator (156) -
Prime
:: TrialDivisionGenerator (36) - Proc (36)
-
Process
:: Status (60) -
Psych
:: Nodes :: Node (24) -
Psych
:: ScalarScanner (12) -
Psych
:: Visitors :: YAMLTree (12) -
RDoc
:: Context (24) -
RDoc
:: Generator :: Darkfish (24) -
RDoc
:: Generator :: JsonIndex (12) -
RDoc
:: Generator :: RI (24) -
RDoc
:: Markup (12) -
RDoc
:: Markup :: Formatter (12) -
RDoc
:: Options (24) -
RDoc
:: Parser :: ChangeLog (12) -
RDoc
:: TopLevel (60) -
REXML
:: Attribute (24) -
REXML
:: CData (24) -
REXML
:: Child (24) -
REXML
:: Comment (24) -
REXML
:: Declaration (12) -
REXML
:: DocType (12) -
REXML
:: Element (12) -
REXML
:: Entity (12) -
REXML
:: ExternalEntity (12) -
REXML
:: NotationDecl (12) -
REXML
:: ParseException (12) -
REXML
:: Text (24) -
RSS
:: Maker :: ChannelBase (48) -
RSS
:: Rss :: Channel (48) -
Rake
:: Application (12) -
Rake
:: EarlyTime (12) -
Rake
:: FileList (12) -
Rake
:: InvocationChain (12) -
Rake
:: InvocationChain :: EmptyInvocationChain (12) -
Rake
:: Task (12) -
Rake
:: TaskArguments (48) - Random (24)
- Range (181)
- Rational (132)
- Regexp (60)
-
Resolv
:: DNS :: Name (12) -
Resolv
:: DNS :: Resource :: IN :: WKS (12) -
Resolv
:: IPv4 (12) -
Resolv
:: IPv6 (24) -
Ripper
:: Lexer (12) -
RubyVM
:: InstructionSequence (10) - SDBM (24)
-
Scanf
:: FormatString (6) - Set (16)
- Shell (18)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (24) - SimpleDelegator (24)
-
Socket
:: Option (24) - String (536)
- StringIO (112)
- Struct (36)
- Symbol (200)
- Thread (40)
-
Thread
:: Backtrace :: Location (36) - ThreadGroup (12)
- Time (126)
- TracePoint (24)
- TrueClass (12)
- UDPSocket (36)
-
URI
:: Generic (84) -
URI
:: MailTo (48) - UnboundMethod (24)
- UncaughtThrowError (11)
- Vector (103)
-
WEBrick
:: BasicLog (72) -
WEBrick
:: Cookie (12) -
WEBrick
:: GenericServer (24) -
WEBrick
:: HTTPRequest (12) -
WEBrick
:: HTTPResponse (48) -
WEBrick
:: HTTPUtils :: FormData (12) -
WEBrick
:: HTTPVersion (12) -
WIN32OLE
_ METHOD (36) -
WIN32OLE
_ PARAM (24) -
WIN32OLE
_ TYPE (36) -
WIN32OLE
_ TYPELIB (24) -
WIN32OLE
_ VARIABLE (24) - WeakRef (12)
-
Win32
:: Registry (108) -
YAML
:: DBM (12) -
Zlib
:: GzipFile (24) -
Zlib
:: GzipReader (36) -
Zlib
:: GzipWriter (36) -
Zlib
:: ZStream (24)
モジュール
-
CGI
:: HtmlExtension (48) -
CGI
:: QueryExtension (12) -
CGI
:: QueryExtension :: Value (24) - Enumerable (139)
-
Fiddle
:: Importer (36) - Forwardable (48)
-
IRB
:: HistorySavingAbility (24) -
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 (36) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (36)
-
MiniTest
:: Assertions (2) -
OpenSSL
:: Buffering (12) -
OptionParser
:: Arguable (12) -
REXML
:: Node (12) -
Rake
:: TaskManager (12) - SingleForwardable (48)
- Singleton (24)
- TSort (22)
-
WEBrick
:: HTTPAuth :: Authenticator (36)
キーワード
- ! (12)
- != (12)
- % (38)
- & (12)
- * (12)
- << (48)
- <=> (12)
- == (24)
- === (12)
- =~ (12)
- >> (12)
- [] (156)
- []= (31)
-
_ _ getobj _ _ (36) -
_ _ setobj _ _ (24) -
_ _ to _ s _ _ (12) - abs (12)
-
absolute
_ path (12) -
add
_ class _ or _ module (12) -
add
_ html (12) -
add
_ tag (12) -
add
_ to (12) - alien (12)
-
angle
_ with (12) - append (12)
-
assert
_ operator (1) -
assert
_ respond _ to (1) - autoload? (12)
- autorequire (12)
- autorequire= (12)
-
backtrace
_ locations (24) - begin (19)
- bind (12)
- binread (12)
- binwrite (12)
-
body
_ stream (12) -
body
_ stream= (12) - bottom (12)
- bsearch (12)
-
buffer
_ initial _ length= (12) - bytes (38)
- call (12)
- captures (12)
- ceil (36)
- chars (38)
-
check
_ signedness (24) - chmod (12)
- chown (12)
- chunked= (12)
- clone (12)
- close (48)
- closed? (12)
- codepoints (38)
- cofactor (24)
-
cofactor
_ expansion (12) -
col
_ sep (12) - config (12)
- config= (12)
-
content
_ length (12) -
content
_ length= (12) -
create
_ ext _ from _ string (12) -
create
_ makefile (12) -
create
_ rule (12) - data (12)
- debug (12)
- deconstruct (2)
-
def
_ delegator (24) -
def
_ delegators (24) -
def
_ instance _ delegator (12) -
def
_ instance _ delegators (12) -
def
_ single _ delegator (12) -
def
_ single _ delegators (12) -
define
_ singleton _ method (24) - delete (60)
- denominator (60)
-
descriptor
_ length (12) -
dest
_ directory (12) - directory (12)
- directory? (12)
- downto (24)
- dup (12)
- each (170)
-
each
_ byte (60) -
each
_ char (36) -
each
_ codepoint (48) -
each
_ grapheme _ cluster (16) -
each
_ line (96) -
each
_ option (12) -
each
_ strongly _ connected _ component (11) -
each
_ strongly _ connected _ component _ from (11) -
each
_ with _ index (36) - eager (6)
- echo (18)
- eigen (12)
- eigensystem (12)
-
eigenvector
_ matrix (12) -
eigenvector
_ matrix _ inv (12) - eigenvectors (12)
- enclose (12)
- end (12)
- entities (12)
- entries (19)
-
enum
_ for (48) - eql? (3)
- error (48)
- error? (12)
-
error
_ depth (12) -
error
_ string (24) -
eval
_ history (12) - export (60)
- extname (12)
- fatal (12)
- file (12)
-
file
_ absolute _ name (12) -
file
_ relative _ name (12) - fileno (36)
- filter! (7)
- find (22)
-
find
_ index (24) -
find
_ local _ symbol (12) - first (24)
- flags= (24)
- floor (36)
- fnmatch (12)
- fnmatch? (12)
- force (12)
- formatter (12)
- freeze (12)
- ftype (12)
-
full
_ name (12) -
gems
_ to _ install (12) - generate (36)
- generator (48)
- generator= (36)
- get (12)
-
get
_ elements (12) -
get
_ option (12) - getopts (36)
- glob (18)
- gmtoff (12)
-
grapheme
_ clusters (16) - grep (12)
-
grep
_ v (10) -
group
_ by (12) - grpowned? (12)
- gsub (12)
- gsub! (12)
- hash (19)
- headers (12)
- help (12)
- helpstring (12)
- hex (12)
- hexdigest (24)
-
history
_ file (12) - hostname= (12)
- hton (12)
- httopnly (12)
- httopnly= (12)
- id2name (12)
-
in
_ reply _ to (12) - index (24)
- info (12)
- initialize (24)
-
insert
_ output (12) - inspect (309)
- intern (12)
- join (12)
- kconv (12)
-
keep
_ if (12) -
laplace
_ expansion (12) - last (24)
- lchmod (12)
- lchown (12)
- length (24)
- line (12)
- lines (52)
-
load
_ history (12) - logger (12)
- magnitude (12)
-
make
_ temp _ directories (12) - managingEditor (24)
- managingEditor= (24)
-
marshal
_ dump (12) -
marshal
_ load (12) - match (27)
-
max
_ by (48) -
max
_ key _ length (12) -
max
_ value _ length (12) -
max
_ value _ name _ length (12) - merge (24)
- merge! (36)
-
method
_ missing (24) - methods (12)
- mkdir (12)
- modulo (12)
- name (101)
- negative? (8)
- next (48)
-
next
_ sibling= (12) - norm (12)
- normalize (12)
- normalize! (12)
- nsec (12)
-
num
_ bytes (12) -
num
_ keys (12) -
num
_ values (12) - numerator (48)
- oct (12)
-
ok
_ to _ remove? (12) - order (36)
- order! (18)
- ordering (12)
- ordering= (12)
-
original
_ dir (12) - pack (21)
- parse (18)
- parse! (9)
- path (51)
- pathmap (12)
- permutation (24)
- permute (18)
- permute! (9)
-
previous
_ sibling= (12) - prime? (12)
-
prime
_ division (24) -
primitive
_ errinfo (12) - print (12)
-
program
_ name (12) -
program
_ name= (12) -
protected
_ methods (12) - protocol (24)
-
psych
_ to _ yaml (12) -
public
_ methods (12) - putback (24)
- putc (12)
- quiet (12)
- quiet= (12)
- quiet? (12)
- r (12)
- rand (24)
- read (12)
-
read
_ body (12) - readlines (48)
- ready (12)
- realm (12)
-
record
_ separator (6) - reject (12)
- remainder (12)
-
remove
_ leading _ dot _ dir (12) -
respond
_ to? (12) -
respond
_ to _ missing? (24) - restore (48)
- result (12)
-
reverse
_ each (2) - rewind (48)
- round (48)
-
route
_ to (12) - run (12)
-
save
_ history (24) - scan (12)
- select! (12)
- send (36)
-
server
_ protocol (12) -
set
_ backtrace (12) -
set
_ error (12) -
set
_ generator (12) -
set
_ visibility _ for (12) - setgid? (12)
- signal (12)
-
singleton
_ class (12) -
singleton
_ class? (12) -
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) - size (86)
- sizeof (12)
- slice (60)
- sort (12)
-
source
_ location (12) - split (12)
- src (12)
- start (12)
- step (19)
- stop (12)
- stopsig (12)
- store (48)
- string (12)
- struct (12)
- subsec (12)
- succ (48)
- sysopen (12)
- syswrite (12)
- terminate (12)
- terminated? (12)
- times (12)
-
to
_ a (181) -
to
_ ary (24) -
to
_ binary (10) -
to
_ bn (12) -
to
_ c (12) -
to
_ csv (36) -
to
_ d (79) -
to
_ der (216) -
to
_ digits (12) -
to
_ enum (48) -
to
_ f (39) -
to
_ h (19) -
to
_ hash (24) -
to
_ i (228) -
to
_ id (24) -
to
_ int (72) -
to
_ io (24) -
to
_ json (252) -
to
_ json _ raw (12) -
to
_ json _ raw _ object (12) -
to
_ mailtext (12) -
to
_ name (12) -
to
_ path (39) -
to
_ pem (156) -
to
_ r (36) -
to
_ range (12) -
to
_ regexp (12) -
to
_ rfc822text (12) -
to
_ ruby (12) -
to
_ s (1212) -
to
_ set (24) -
to
_ sockaddr (12) -
to
_ str (48) -
to
_ string (24) -
to
_ sym (12) -
to
_ text (120) -
to
_ write _ io (12) -
to
_ yaml (24) - toeuc (12)
- tojis (12)
- tokenize (24)
- tokens (12)
- tolocale (12)
- top (24)
- tosjis (12)
-
total
_ in (12) -
total
_ out (12) - toutf16 (12)
- toutf32 (12)
- toutf8 (12)
- truncate (60)
-
tv
_ nsec (12) -
tv
_ sec (12) -
tv
_ usec (12) -
uid
_ sort (12) -
uid
_ store (12) -
ultra
_ safe (12) -
ultra
_ safe= (12) -
unit
_ test (12) - unlink (12)
- unpack (24)
- update (72)
-
upper
_ bound (12) -
upper
_ bound= (12) - upto (36)
- usec (12)
- userdb (12)
- userinfo= (12)
- utime (12)
- v (12)
-
v
_ inv (12) - value (24)
-
values
_ at (12) - verify (36)
-
verify
_ gem (12) -
verify
_ gem _ file (12) - version (12)
- warn (12)
-
which
_ to _ update (12) -
with
_ defaults (12) -
with
_ index (42) -
with
_ object (36) - write (60)
- wtime (12)
- yaml (12)
検索結果
先頭5件
- JSON
:: Generator :: GeneratorMethods :: Integer # to _ json(state _ or _ hash = nil) -> String - URI
:: MailTo # to -> String - JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw -> String - JSON
:: Generator :: GeneratorMethods :: Object # to _ json(state _ or _ hash = nil) -> String - JSON
:: Generator :: GeneratorMethods :: String # to _ json(state _ or _ hash = nil) -> String
-
JSON
:: Generator :: GeneratorMethods :: Integer # to _ json(state _ or _ hash = nil) -> String (21208.0) -
自身から生成した JSON 形式の文字列を返します。
...する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
10.to_json # => "10"
//}... -
URI
:: MailTo # to -> String (21208.0) -
自身の e-mail アドレスを文字列で返します。
...自身の e-mail アドレスを文字列で返します。
例:
require 'uri'
p URI.parse("mailto:nospam@example.com").to #=> "nospam@example.com"... -
JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw -> String (18246.0) -
自身に対して JSON::Generator::GeneratorMethods::String#to_json_raw_object を呼び出して JSON::Generator::GeneratorMethods::Hash#to_json した結果を返します。
...自身に対して JSON::Generator::GeneratorMethods::String#to_json_raw_object を呼び出して JSON::Generator::GeneratorMethods::Hash#to_json した結果を返します。
@see JSON::Generator::GeneratorMethods::String#to_json_raw_object, JSON::Generator::GeneratorMethods::Hash#to_json... -
JSON
:: Generator :: GeneratorMethods :: Object # to _ json(state _ or _ hash = nil) -> String (18236.0) -
自身を to_s で文字列にした結果を JSON 形式の文字列に変換して返します。
...自身を to_s で文字列にした結果を JSON 形式の文字列に変換して返します。
このメソッドはあるオブジェクトに to_json メソッドが定義されていない場合に使用する
フォールバックのためのメソッドです。
@param state_or_hash 生......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 :: String # to _ json(state _ or _ hash = nil) -> String (18226.0) -
自身から生成した JSON 形式の文字列を返します。
...指定します。
//emlist[例][ruby]{
require "json"
puts "test".to_json # => "test"
puts '"'.to_json # => "\""
puts "\\".to_json # => "\\"
puts "𤘩宮城".to_json(ascii_only: true) # => "\ud851\ude29\u5bae\u57ce"
//}... -
JSON
:: Generator :: GeneratorMethods :: Array # to _ json(state _ or _ hash = nil) -> String (18208.0) -
自身から生成した JSON 形式の文字列を返します。
...N 形式の文字列をカスタマイズするため
に 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 (18208.0) -
自身から生成した JSON 形式の文字列を返します。
...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 (18208.0) -
自身から生成した JSON 形式の文字列を返します。
...る 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 (18208.0) -
自身から生成した JSON 形式の文字列を返します。
...に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
person = { "name" => "tanaka", "age" => 19 }
person.to_json # => "{\"name\":\"tanaka\",\"age\":19}"
//}...