ライブラリ
- ビルトイン (528)
- benchmark (3)
- bigdecimal (20)
-
bigdecimal
/ util (7) -
cgi
/ core (3) -
cgi
/ html (4) -
cgi
/ session (12) -
cgi
/ session / pstore (4) - csv (21)
- date (12)
- dbm (4)
- delegate (16)
- digest (3)
- drb (3)
-
drb
/ extserv (1) -
drb
/ timeridconv (2) - erb (3)
- fiddle (20)
-
fiddle
/ import (5) - forwardable (8)
- gdbm (4)
- getoptlong (16)
- ipaddr (6)
-
irb
/ cmd / help (1) -
irb
/ context (7) -
irb
/ ext / history (2) -
irb
/ ext / save-history (7) -
irb
/ extend-command (1) -
irb
/ frame (2) -
irb
/ inspector (2) - json (17)
-
json
/ add / bigdecimal (1) -
json
/ add / complex (1) -
json
/ add / date (1) -
json
/ add / date _ time (1) -
json
/ add / exception (1) -
json
/ add / ostruct (1) -
json
/ add / range (1) -
json
/ add / rational (1) -
json
/ add / regexp (1) -
json
/ add / struct (1) -
json
/ add / symbol (1) -
json
/ add / time (1) - kconv (8)
- logger (1)
- matrix (83)
- mkmf (5)
- monitor (15)
-
net
/ ftp (7) -
net
/ http (6) -
net
/ imap (8) -
net
/ pop (1) -
net
/ smtp (9) - openssl (139)
- optparse (25)
- ostruct (5)
- pathname (82)
- prime (27)
- pstore (14)
- psych (17)
-
racc
/ parser (2) - rake (19)
-
rdoc
/ code _ object (1) -
rdoc
/ context (4) -
rdoc
/ generator / darkfish (2) -
rdoc
/ generator / json _ index (1) -
rdoc
/ generator / ri (2) -
rdoc
/ markup (3) -
rdoc
/ markup / formatter (1) -
rdoc
/ parser / c (1) -
rdoc
/ parser / changelog (1) -
rdoc
/ parser / markdown (1) -
rdoc
/ parser / rd (1) -
rdoc
/ parser / ruby (1) -
rdoc
/ parser / simple (1) -
rdoc
/ top _ level (10) - resolv (6)
- rexml (1)
-
rexml
/ document (39) -
rexml
/ parsers / pullparser (1) -
ripper
/ filter (2) -
ripper
/ lexer (1) - rss (27)
-
rubygems
/ commands / update _ command (1) -
rubygems
/ dependency _ installer (1) -
rubygems
/ dependency _ list (1) -
rubygems
/ indexer (3) -
rubygems
/ installer (1) -
rubygems
/ package / tar _ header (1) -
rubygems
/ package / tar _ reader / entry (1) -
rubygems
/ platform (2) -
rubygems
/ requirement (1) -
rubygems
/ source _ index (1) -
rubygems
/ specification (3) -
rubygems
/ validator (5) -
rubygems
/ version (2) - scanf (3)
- sdbm (6)
- set (3)
- shell (9)
-
shell
/ command-processor (7) -
shell
/ filter (12) - singleton (2)
- socket (13)
- stringio (11)
- tsort (5)
- un (3)
- uri (13)
- weakref (2)
-
webrick
/ httpauth / authenticator (3) -
webrick
/ httprequest (1) -
webrick
/ httpresponse (7) -
webrick
/ httputils (3) -
webrick
/ httpversion (1) -
webrick
/ log (6) -
webrick
/ server (2) -
win32
/ registry (9) - win32ole (16)
-
yaml
/ dbm (3) - zlib (10)
クラス
-
ARGF
. class (27) - Addrinfo (6)
- Array (87)
- BasicObject (4)
- BasicSocket (1)
-
Benchmark
:: Tms (3) - BigDecimal (23)
-
CGI
:: Cookie (3) -
CGI
:: Session :: FileStore (4) -
CGI
:: Session :: MemoryStore (4) -
CGI
:: Session :: NullStore (4) -
CGI
:: Session :: PStore (4) - CSV (8)
-
CSV
:: FieldInfo (1) -
CSV
:: Row (4) -
CSV
:: Table (7) - Complex (10)
- DBM (4)
-
DRb
:: DRbIdConv (2) -
DRb
:: DRbServer (1) -
DRb
:: ExtServ (1) -
DRb
:: TimerIdConv (2) - Date (10)
- DateTime (1)
- Delegator (14)
-
Digest
:: Base (3) - Dir (3)
- ERB (3)
- Encoding (2)
-
Encoding
:: Converter (4) - Enumerator (15)
-
Enumerator
:: Lazy (33) -
Enumerator
:: Yielder (2) - Exception (4)
- FalseClass (2)
-
Fiddle
:: CStruct (2) -
Fiddle
:: Closure (1) -
Fiddle
:: Function (2) -
Fiddle
:: Handle (1) -
Fiddle
:: Pointer (16) - File (3)
-
File
:: Stat (3) - Float (12)
- GDBM (4)
-
Gem
:: Commands :: UpdateCommand (1) -
Gem
:: DependencyInstaller (1) -
Gem
:: DependencyList (1) -
Gem
:: Indexer (3) -
Gem
:: Installer (1) -
Gem
:: Package :: TarHeader (1) -
Gem
:: Package :: TarReader :: Entry (1) -
Gem
:: Platform (2) -
Gem
:: Requirement (1) -
Gem
:: SourceIndex (1) -
Gem
:: Specification (3) -
Gem
:: Validator (5) -
Gem
:: Version (2) - GetoptLong (16)
- Hash (34)
- IO (23)
- IPAddr (6)
-
IRB
:: Context (14) -
IRB
:: ExtendCommand :: Help (1) -
IRB
:: Frame (2) -
IRB
:: Inspector (2) - Integer (16)
-
JSON
:: State (6) - Logger (1)
- MatchData (10)
- Matrix (30)
-
Matrix
:: EigenvalueDecomposition (7) -
Matrix
:: LUPDecomposition (3) - Method (3)
- Module (12)
- Monitor (3)
-
MonitorMixin
:: ConditionVariable (5) - NameError (1)
-
Net
:: FTP (5) -
Net
:: FTP :: MLSxEntry (2) -
Net
:: HTTP (2) -
Net
:: HTTPGenericRequest (2) -
Net
:: HTTPResponse (2) -
Net
:: IMAP (5) -
Net
:: IMAP :: Envelope (3) -
Net
:: POPMail (1) -
Net
:: SMTP (9) - NilClass (7)
- Numeric (11)
- Object (26)
-
OpenSSL
:: ASN1 :: ASN1Data (1) -
OpenSSL
:: BN (13) -
OpenSSL
:: Config (1) -
OpenSSL
:: HMAC (3) -
OpenSSL
:: Netscape :: SPKI (4) -
OpenSSL
:: OCSP :: BasicResponse (1) -
OpenSSL
:: OCSP :: Request (2) -
OpenSSL
:: OCSP :: Response (1) -
OpenSSL
:: PKCS12 (1) -
OpenSSL
:: PKCS7 (4) -
OpenSSL
:: PKey :: DH (5) -
OpenSSL
:: PKey :: DSA (8) -
OpenSSL
:: PKey :: EC (3) -
OpenSSL
:: PKey :: EC :: Group (6) -
OpenSSL
:: PKey :: EC :: Point (3) -
OpenSSL
:: PKey :: RSA (8) -
OpenSSL
:: SSL :: SSLContext (2) -
OpenSSL
:: SSL :: SSLServer (1) -
OpenSSL
:: SSL :: SSLSocket (2) -
OpenSSL
:: SSL :: Session (3) -
OpenSSL
:: X509 :: Attribute (1) -
OpenSSL
:: X509 :: CRL (4) -
OpenSSL
:: X509 :: Certificate (4) -
OpenSSL
:: X509 :: Extension (4) -
OpenSSL
:: X509 :: ExtensionFactory (16) -
OpenSSL
:: X509 :: Name (3) -
OpenSSL
:: X509 :: Request (4) -
OpenSSL
:: X509 :: Store (16) -
OpenSSL
:: X509 :: StoreContext (13) - OpenStruct (6)
- OptionParser (22)
-
OptionParser
:: ParseError (2) - PStore (13)
-
PStore
:: DummyMutex (1) - Pathname (81)
- Prime (4)
-
Prime
:: EratosthenesGenerator (3) -
Prime
:: Generator23 (3) -
Prime
:: PseudoPrimeGenerator (13) -
Prime
:: TrialDivisionGenerator (3) - Proc (5)
-
Process
:: Status (7) -
Psych
:: Nodes :: Node (5) -
Psych
:: ScalarScanner (1) -
Psych
:: Visitors :: YAMLTree (9) -
RDoc
:: CodeObject (1) -
RDoc
:: Context (4) -
RDoc
:: Generator :: Darkfish (2) -
RDoc
:: Generator :: JsonIndex (1) -
RDoc
:: Generator :: RI (2) -
RDoc
:: Markup (3) -
RDoc
:: Markup :: Formatter (1) -
RDoc
:: Options (2) -
RDoc
:: Parser :: C (1) -
RDoc
:: Parser :: ChangeLog (1) -
RDoc
:: Parser :: Markdown (1) -
RDoc
:: Parser :: RD (1) -
RDoc
:: Parser :: Ruby (1) -
RDoc
:: Parser :: Simple (1) -
RDoc
:: TopLevel (10) -
REXML
:: Attribute (2) -
REXML
:: Attributes (1) -
REXML
:: CData (2) -
REXML
:: Child (2) -
REXML
:: Comment (2) -
REXML
:: Declaration (1) -
REXML
:: DocType (1) -
REXML
:: Element (7) -
REXML
:: Elements (6) -
REXML
:: Entity (2) -
REXML
:: ExternalEntity (1) -
REXML
:: NotationDecl (1) -
REXML
:: Parent (7) -
REXML
:: ParseException (1) -
REXML
:: Parsers :: PullParser (1) -
REXML
:: Text (3) -
RSS
:: Maker :: ChannelBase (4) -
RSS
:: Rss :: Channel (4) -
RSS
:: Rss :: Channel :: Cloud (2) -
RSS
:: TaxonomyTopicModel :: TaxonomyTopic (6) -
RSS
:: TaxonomyTopicsModel :: TaxonomyTopics (1) -
Racc
:: Parser (2) -
Rake
:: Application (3) -
Rake
:: DefaultLoader (1) -
Rake
:: EarlyTime (1) -
Rake
:: FileList (4) -
Rake
:: InvocationChain (1) -
Rake
:: InvocationChain :: EmptyInvocationChain (1) -
Rake
:: Task (1) -
Rake
:: TaskArguments (4) - Random (3)
- Range (12)
- Rational (13)
- Regexp (5)
-
Resolv
:: DNS :: Name (1) -
Resolv
:: DNS :: Resource :: IN :: WKS (1) -
Resolv
:: IPv4 (2) -
Resolv
:: IPv6 (2) -
Ripper
:: Filter (2) -
Ripper
:: Lexer (1) -
RubyVM
:: InstructionSequence (2) - SDBM (6)
-
Scanf
:: FormatSpecifier (2) -
Scanf
:: FormatString (1) - Set (1)
- Shell (9)
-
Shell
:: CommandProcessor (7) -
Shell
:: Filter (12) - SimpleDelegator (2)
-
Socket
:: Option (2) - StopIteration (1)
- String (42)
- StringIO (11)
- Struct (9)
- Symbol (28)
- Thread (7)
-
Thread
:: Backtrace :: Location (3) -
Thread
:: Queue (1) - ThreadGroup (1)
- Time (16)
- TracePoint (2)
- TrueClass (1)
- UDPSocket (3)
- UNIXSocket (1)
-
URI
:: Generic (7) -
URI
:: MailTo (6) - UnboundMethod (3)
- UncaughtThrowError (1)
- Vector (43)
-
WEBrick
:: BasicLog (6) -
WEBrick
:: Cookie (1) -
WEBrick
:: GenericServer (2) -
WEBrick
:: HTTPRequest (1) -
WEBrick
:: HTTPResponse (7) -
WEBrick
:: HTTPUtils :: FormData (3) -
WEBrick
:: HTTPVersion (1) - WIN32OLE (3)
-
WIN32OLE
_ EVENT (1) -
WIN32OLE
_ METHOD (3) -
WIN32OLE
_ PARAM (2) -
WIN32OLE
_ TYPE (3) -
WIN32OLE
_ TYPELIB (2) -
WIN32OLE
_ VARIABLE (2) - WeakRef (2)
-
Win32
:: Registry (9) -
YAML
:: DBM (3) -
Zlib
:: GzipFile (2) -
Zlib
:: GzipReader (3) -
Zlib
:: GzipWriter (3) -
Zlib
:: ZStream (2)
モジュール
-
CGI
:: HtmlExtension (4) -
CGI
:: QueryExtension (1) -
CGI
:: QueryExtension :: Value (2) - DublinCoreModel (6)
- Enumerable (44)
-
Fiddle
:: Importer (3) - Forwardable (4)
-
IRB
:: ExtendCommandBundle (1) -
IRB
:: HistorySavingAbility (2) -
JSON
:: Generator :: GeneratorMethods :: Array (1) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (1) -
JSON
:: Generator :: GeneratorMethods :: Float (1) -
JSON
:: Generator :: GeneratorMethods :: Hash (1) -
JSON
:: Generator :: GeneratorMethods :: Integer (1) -
JSON
:: Generator :: GeneratorMethods :: NilClass (1) -
JSON
:: Generator :: GeneratorMethods :: Object (1) -
JSON
:: Generator :: GeneratorMethods :: String (3) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (1) - Kernel (10)
- MonitorMixin (7)
-
OpenSSL
:: Buffering (1) -
OptionParser
:: Arguable (1) -
REXML
:: Node (1) -
RSS
:: RootElementMixin (1) -
RSS
:: TaxonomyTopicModel (2) -
RSS
:: TaxonomyTopicsModel (1) -
Rake
:: TaskManager (1) - SingleForwardable (4)
- Singleton (2)
- TSort (5)
-
WEBrick
:: HTTPAuth :: Authenticator (3)
キーワード
- ! (1)
- != (1)
- % (2)
- & (2)
- * (5)
- + (2)
- +@ (2)
- - (2)
- -@ (2)
-
/ (1) - << (10)
- <=> (2)
- == (5)
- === (1)
- =~ (1)
- > (1)
- >> (3)
- Pathname (1)
- [] (17)
- []= (10)
-
_ _ getobj _ _ (3) -
_ _ setobj _ _ (3) -
_ _ to _ s _ _ (1) - abort (1)
- about (1)
- about= (1)
- abs (1)
- absolute? (1)
-
absolute
_ path (1) - add (1)
-
add
_ cert (1) -
add
_ class _ or _ module (1) -
add
_ crl (1) -
add
_ element (1) -
add
_ file (1) -
add
_ html (1) -
add
_ namespace (2) -
add
_ path (1) -
add
_ special (1) -
add
_ tag (1) -
add
_ to (1) -
add
_ trace _ func (1) -
add
_ word _ pair (1) - alien (1)
- ancestors (1)
-
angle
_ with (1) - append (4)
- ascend (2)
- at (1)
- atime (2)
-
auto
_ indent _ mode (1) -
auto
_ indent _ mode= (1) - autoclose= (1)
- autoclose? (1)
- autoload (1)
- autoload? (1)
- autorequire (1)
- autorequire= (1)
-
backtrace
_ locations (2) - basename (1)
- begin (1)
- bind (1)
- binread (1)
- binwrite (1)
- birthtime (1)
- blockdev? (1)
- body= (1)
-
body
_ stream (1) -
body
_ stream= (1) - bottom (1)
- broadcast (1)
- bsearch (2)
-
bsearch
_ index (1) -
buffer
_ initial _ length= (1) - bytes (5)
- call (1)
- capitalize (1)
- captures (1)
- casecmp (1)
- casecmp? (1)
- cat (3)
- ceil (3)
-
cert
_ store (2) -
cert
_ store= (2) - chain (2)
- chardev? (1)
- chars (5)
-
check
_ signedness (2) - children (2)
- chmod (2)
- chown (1)
- chunk (3)
-
chunk
_ while (2) - chunked= (1)
- cleanup (1)
- clone (3)
- close (5)
- closed? (1)
- codepoints (5)
- coerce (2)
- cofactor (2)
-
cofactor
_ expansion (1) -
col
_ sep (1) - collect (6)
- collect! (1)
- collect2 (2)
-
collect
_ concat (2) - column (1)
-
column
_ vectors (1) - combination (2)
- commit (1)
- component (1)
- config (1)
- config= (1)
-
connect
_ to (2) -
content
_ length (1) -
content
_ length= (1) -
convertible
_ int (2) - covector (1)
-
create
_ ext (1) -
create
_ ext _ from _ array (1) -
create
_ ext _ from _ hash (1) -
create
_ ext _ from _ string (1) -
create
_ extension (2) -
create
_ makefile (1) -
create
_ rule (1) - crl (1)
- crl= (1)
- cross (1)
-
cross
_ product (1) - ctime (2)
-
current
_ cert (1) -
current
_ crl (1) - cycle (3)
- data (1)
- date (1)
- date= (1)
-
dc
_ contributor (1) -
dc
_ contributor= (1) -
dc
_ contributors (1) -
dc
_ creator (1) -
dc
_ creator= (1) -
dc
_ creators (1) - debug (1)
-
def
_ delegator (2) -
def
_ delegators (2) -
def
_ instance _ delegator (1) -
def
_ instance _ delegators (1) -
def
_ single _ delegator (1) -
def
_ single _ delegators (1) -
default
_ proc= (1) -
define
_ singleton _ method (2) - delete (8)
-
delete
_ all (1) -
delete
_ at (1) -
delete
_ element (1) -
delete
_ if (6) -
delete
_ namespace (1) - denominator (5)
- depth= (1)
- descend (2)
-
descriptor
_ length (1) -
dest
_ directory (1) - detect (1)
- directory (2)
- directory? (7)
-
directory
_ makable? (1) - dirname (1)
- dot (1)
- downcase (1)
- downto (4)
- drop (1)
-
drop
_ while (3) - dup (2)
- each (28)
- each2 (2)
-
each
_ byte (6) -
each
_ char (4) -
each
_ child (3) -
each
_ codepoint (5) -
each
_ cons (1) -
each
_ entry (2) -
each
_ index (2) -
each
_ key (1) -
each
_ line (11) -
each
_ option (1) -
each
_ pair (4) -
each
_ slice (1) -
each
_ strongly _ connected _ component (1) -
each
_ strongly _ connected _ component _ from (1) -
each
_ value (1) -
each
_ with _ index (4) -
each
_ with _ object (1) - echo (3)
- eigen (1)
- eigensystem (1)
-
eigenvector
_ matrix (1) -
eigenvector
_ matrix _ inv (1) - eigenvectors (1)
- element (1)
-
elements
_ to _ f (2) -
elements
_ to _ i (2) -
elements
_ to _ r (2) - empty? (1)
-
enable
_ starttls _ auto (1) - enclose (1)
- end (1)
- enter (1)
- entities (1)
- entries (1)
-
enum
_ for (4) - eql? (1)
- error (4)
- error= (1)
- error? (1)
-
error
_ depth (1) -
error
_ string (2) -
eval
_ history (1) -
eval
_ history= (1) - executable? (1)
-
executable
_ real? (1) - execute (1)
- exist? (1)
- exit (1)
- export (5)
- extname (1)
- fatal (1)
- feed (1)
- fetch (4)
- file (1)
- file? (1)
-
file
_ absolute _ name (1) -
file
_ absolute _ name= (1) -
file
_ relative _ name (1) -
file
_ relative _ name= (1) -
file
_ stat (1) -
file
_ stat= (1) - fileno (3)
- find (3)
-
find
_ all (2) -
find
_ index (5) -
find
_ local _ symbol (1) -
find
_ module _ named (1) - finish (1)
- finished (1)
- finished? (1)
- first (4)
- flags= (2)
-
flat
_ map (2) - flatten (1)
- flatten! (1)
- flock (1)
- floor (3)
- fnmatch (1)
- fnmatch? (1)
- force (1)
- formatter (1)
- freeze (1)
- ftype (1)
-
full
_ name (1) -
gems
_ to _ install (1) - generate (3)
- generator (4)
- generator= (3)
- get (1)
-
get
_ elements (1) -
get
_ option (1) - getopts (3)
- glob (3)
- gmtoff (1)
- grep (1)
-
grep
_ v (1) -
group
_ by (1) - grpowned? (1)
- gsub (1)
- gsub! (1)
- handler= (1)
- hash (1)
-
header
_ convert (3) -
header
_ converters (1) - headers (1)
- headers= (1)
- help (1)
- helpstring (1)
- hex (1)
- hexdigest (2)
-
history
_ file (1) -
history
_ file= (1) - hostname= (1)
- hton (1)
- httopnly (1)
- httopnly= (1)
-
http
_ version (1) - id2name (1)
-
in
_ reply _ to (1) -
in
_ transaction (1) - independent? (1)
- index (4)
- infinity? (1)
- info (1)
- init (1)
-
init
_ save _ history (1) - initialize (2)
-
inner
_ product (1) - insert (1)
-
insert
_ output (1) - inspect (22)
- inspect? (1)
-
inspect
_ mode= (1) -
inspect
_ value (1) -
install
_ alias _ method (1) -
instance
_ methods (1) - intern (2)
- io (1)
-
ipv6
_ to _ ipv4 (1) -
issuer
_ certificate (1) -
issuer
_ certificate= (1) - join (1)
- kconv (1)
-
keep
_ if (2) - keys (1)
- lambda? (1)
-
laplace
_ expansion (1) - last (4)
- lazy (2)
- lchmod (1)
- lchown (1)
- length (2)
- line (1)
- lines (9)
- list (1)
- load (1)
-
load
_ history (1) - logger (1)
- lshift! (1)
- lstat (1)
- lup (1)
-
lup
_ decomposition (1) - magnitude (1)
-
make
_ link (1) -
make
_ symlink (1) -
make
_ temp _ directories (1) - managingEditor (2)
- managingEditor= (2)
- map (6)
- map! (1)
- map2 (1)
-
marshal
_ dump (1) -
marshal
_ load (1) -
mask
_ bits! (1) - match (3)
-
max
_ by (4) -
max
_ key _ length (1) -
max
_ value _ length (1) -
max
_ value _ name _ length (1) - merge (2)
- merge! (3)
-
method
_ missing (2) - methods (1)
-
min
_ by (2) -
minmax
_ by (1) - minor (2)
- mkdir (1)
- mkmf (1)
- mkpath (1)
-
mod
_ inverse (1) - modulo (1)
-
mon
_ enter (1) -
mon
_ exit (1) -
mon
_ synchronize (1) -
mon
_ try _ enter (1) - mtime (1)
- name (8)
-
new
_ cond (1) - next (6)
-
next
_ float (1) -
next
_ sibling= (1) -
next
_ token (1) -
next
_ values (1) - norm (1)
- normalize (2)
- normalize! (1)
- nsec (1)
-
num
_ bytes (1) -
num
_ keys (1) -
num
_ values (1) - numerator (5)
- oct (1)
-
ok
_ to _ remove? (1) -
ole
_ free (1) -
ole
_ query _ interface (1) -
ole
_ respond _ to? (1) -
on
_ XXX (1) -
on
_ default (1) - open (2)
- opendir (2)
- order (4)
- order! (2)
- ordering (1)
- ordering= (1)
-
original
_ dir (1) - owned? (1)
- owner (1)
- pack (2)
- parse (2)
- parse! (1)
- partition (1)
- path (4)
- pathmap (1)
- peek (1)
-
peek
_ values (1) - permutation (2)
- permute (2)
- permute! (1)
- pipe? (1)
- pop (2)
- prepended (1)
-
pretty
_ print (1) -
prev
_ float (1) -
previous
_ sibling= (1) - prime? (1)
-
prime
_ division (2) -
primitive
_ errinfo (1) - print (1)
-
private
_ instance _ methods (1) -
program
_ name (1) -
program
_ name= (1) -
protected
_ instance _ methods (1) -
protected
_ methods (1) - protocol (3)
- protocol= (1)
-
psych
_ to _ yaml (1) - ptr (1)
-
public
_ instance _ methods (1) -
public
_ method (1) -
public
_ methods (1) - purpose= (2)
- push (1)
- putback (2)
- putc (1)
- quiet (1)
- quiet= (1)
- quiet? (1)
-
quirks
_ mode= (1) - r (1)
- rand (3)
- rationalize (2)
- rcptto (1)
-
rcptto
_ list (1) - read (1)
-
read
_ body (2) - readable? (1)
-
readable
_ real? (1) - readlines (4)
- readlink (1)
- ready (1)
- realm (1)
-
record
_ location (1) -
record
_ separator (1) -
record
_ separator= (1) - ref (1)
- reject (8)
- reject! (3)
-
relative
_ path _ from (1) - remainder (1)
-
remove
_ leading _ dot _ dir (1) - rename (5)
-
repeated
_ combination (2) -
repeated
_ permutation (2) - replace (3)
-
replace
_ child (1) -
reply
_ to (1) - resources (1)
-
respond
_ to? (2) -
respond
_ to _ missing? (2) - restore (4)
- result (2)
-
reverse
_ each (2) - rewind (5)
- rindex (1)
- rmdir (1)
- rmtree (1)
- root? (1)
- roots (1)
- rotate (1)
- rotate! (1)
- round (4)
-
route
_ to (1) - row (1)
-
row
_ vectors (1) - rshift! (1)
- run (1)
- sample (4)
-
save
_ history (2) -
save
_ history= (1) - scan (6)
- select (5)
- select! (2)
- send (3)
-
send
_ io (1) -
send
_ mail (1) - sendmail (1)
- separator (1)
-
server
_ protocol (1) -
set
_ backtrace (1) -
set
_ default _ paths (1) -
set
_ error (1) -
set
_ generator (1) -
set
_ to _ infinity! (1) -
set
_ trace _ func (1) -
set
_ visibility _ for (1) - setgid? (1)
- setsockopt (1)
- setuid? (1)
- shift (2)
- signal (1)
-
singleton
_ class (1) -
singleton
_ class? (1) -
singleton
_ method (1) -
singleton
_ method _ added (1) -
singleton
_ method _ removed (1) -
singleton
_ method _ undefined (1) -
singleton
_ methods (1) - size (6)
- size? (1)
- sizeof (1)
- slice (5)
-
slice
_ after (4) -
slice
_ before (5) -
slice
_ when (2) - socket? (1)
- solve (1)
- sort (3)
- sort! (2)
-
sort
_ by (1) -
sort
_ by! (1) -
source
_ location (1) - split (2)
- src (1)
- start (1)
- started (1)
- started? (1)
-
starttls
_ auto? (1) - stat (1)
- step (8)
- sticky? (1)
- stop (1)
- stop? (1)
-
stop
_ doc (1) -
stop
_ service (2) - stopped? (1)
- stopsig (1)
- storbinary (2)
- store (6)
- storlines (2)
- string (1)
- struct (1)
-
subject
_ certificate (1) -
subject
_ certificate= (1) -
subject
_ request (1) -
subject
_ request= (1) - subsec (1)
- succ (6)
- summarize (2)
- swapcase (1)
- symlink? (1)
- synchronize (2)
- sysopen (1)
- syswrite (1)
- take (1)
-
take
_ while (4) - tap (1)
-
taxo
_ link (1) -
taxo
_ link= (1) -
taxo
_ topic (1) -
taxo
_ topic= (1) -
taxo
_ topics (1) - tee (3)
- terminate (1)
- terminated? (1)
- text= (1)
- time= (2)
- times (1)
- to= (1)
-
to
_ a (33) -
to
_ ary (7) -
to
_ binary (1) -
to
_ bn (3) -
to
_ c (4) -
to
_ csv (3) -
to
_ d (6) -
to
_ date (2) -
to
_ datetime (2) -
to
_ der (18) -
to
_ digits (1) -
to
_ enum (4) -
to
_ f (8) -
to
_ h (8) -
to
_ hash (9) -
to
_ i (19) -
to
_ id (2) -
to
_ int (6) -
to
_ io (7) -
to
_ json (21) -
to
_ json _ raw (1) -
to
_ json _ raw _ object (1) -
to
_ mailtext (1) -
to
_ name (2) -
to
_ obj (2) -
to
_ path (3) -
to
_ pem (13) -
to
_ proc (5) -
to
_ ptr (1) -
to
_ r (8) -
to
_ range (1) -
to
_ re (1) -
to
_ regexp (1) -
to
_ rfc822text (1) -
to
_ ruby (2) -
to
_ s (101) -
to
_ set (2) -
to
_ sockaddr (1) -
to
_ str (4) -
to
_ string (2) -
to
_ sym (2) -
to
_ text (10) -
to
_ time (2) -
to
_ value (1) -
to
_ write _ io (1) -
to
_ xml (1) -
to
_ yaml (2) - toeuc (1)
- tojis (1)
-
token
_ to _ str (1) - tokenize (2)
- tokens (1)
- tolocale (1)
- top (2)
-
top
_ level (1) -
top
_ level _ tasks (1) - toplevel (1)
- tosjis (1)
- total (1)
-
total
_ in (1) -
total
_ out (1) - touch (1)
- toutf16 (1)
- toutf32 (1)
- toutf8 (1)
- transaction (1)
- transform (1)
-
transform
_ values (2) -
transform
_ values! (2) - tree (1)
- truncate (5)
- trust= (2)
-
try
_ enter (1) -
try
_ mon _ enter (1) -
tsort
_ each (1) -
tsort
_ each _ child (1) -
tsort
_ each _ node (1) -
tv
_ nsec (1) -
tv
_ sec (1) -
tv
_ usec (1) -
uid
_ sort (1) -
uid
_ store (1) -
ultra
_ safe (1) -
ultra
_ safe= (1) - uniq (4)
- uniq! (2)
-
unit
_ test (1) - unlink (1)
- unpack (2)
- unshift (1)
- upcase (1)
- update (7)
-
upper
_ bound (1) -
upper
_ bound= (1) - upto (5)
- usec (1)
- userdb (1)
- userinfo= (1)
- utime (1)
- v (1)
-
v
_ inv (1) - value (2)
- value= (1)
- values (2)
-
values
_ at (2) - verify (6)
-
verify
_ callback (1) -
verify
_ callback= (1) -
verify
_ gem (1) -
verify
_ gem _ file (1) - version (1)
- wait (1)
-
wait
_ until (1) -
wait
_ while (1) - warn (1)
-
which
_ to _ update (1) -
with
_ defaults (1) -
with
_ index (4) -
with
_ object (4) -
world
_ readable? (1) -
world
_ writable? (1) - writable? (1)
-
writable
_ real? (1) - write (6)
- wtime (1)
- yaml (1)
- yield (1)
- zero? (1)
- zip (6)
- | (2)
検索結果
先頭5件
-
URI
:: MailTo # to -> String (63325.0) -
自身の e-mail アドレスを文字列で返します。
自身の e-mail アドレスを文字列で返します。
例:
require 'uri'
p URI.parse("mailto:nospam@example.com").to #=> "nospam@example.com" -
Net
:: IMAP :: Envelope # to -> [Net :: IMAP :: Address] | nil (54355.0) -
To を Net::IMAP::Address オブジェクトの配列で返します。
To を Net::IMAP::Address オブジェクトの配列で返します。
エンベロープに存在しないときは nil を返します。 -
Racc
:: Parser # token _ to _ str(t) (36607.0) -
@todo
@todo -
JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw -> String (36439.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 (36409.0) -
自身を to_s で文字列にした結果を JSON 形式の文字列に変換して返します。
自身を to_s で文字列にした結果を JSON 形式の文字列に変換して返します。
このメソッドはあるオブジェクトに to_json メソッドが定義されていない場合に使用する
フォールバックのためのメソッドです。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby... -
JSON
:: Generator :: GeneratorMethods :: String # to _ json(state _ or _ hash = nil) -> String (36379.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
自身のエンコードは UTF-8 であるべきです。
"\u????" のように UTF-16 ビッグエンディアンでエンコードされた文字列を返すことがあります。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]... -
JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw _ object -> Hash (36343.0) -
生の文字列を格納したハッシュを生成します。
生の文字列を格納したハッシュを生成します。
このメソッドは UTF-8 の文字列ではなく生の文字列を JSON に変換する場合に使用してください。
require 'json'
"にほんご".encode("euc-jp").to_json_raw_object
# => {"json_class"=>"String", "raw"=>[164, 203, 164, 219, 164, 243, 164, 180]}
"にほんご".encode("euc-jp").to_json # source sequence is illegal/malformed (JSON::... -
JSON
:: Generator :: GeneratorMethods :: Array # to _ json(state _ or _ hash = nil) -> String (36325.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 (36325.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 (36325.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 (36325.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 # ... -
JSON
:: Generator :: GeneratorMethods :: Integer # to _ json(state _ or _ hash = nil) -> String (36325.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 (36325.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 :: TrueClass # to _ json(state _ or _ hash = nil) -> String (36325.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
"true" という文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
true.to_json # => "true"
//} -
Vector
# elements _ to _ f -> Vector (27643.0) -
ベクトルの各成分をFloatに変換したベクトルを返します。
ベクトルの各成分をFloatに変換したベクトルを返します。
このメソッドは deprecated です。 map(&:to_f) を使ってください。
//emlist[例][ruby]{
require 'matrix'
v = Vector.elements([2, 3, 5, 7, 9])
p v.elements_to_f
# => Vector[2.0, 3.0, 5.0, 7.0, 9.0]
//} -
Vector
# elements _ to _ i -> Vector (27643.0) -
ベクトルの各成分をIntegerに変換したベクトルを返します。
ベクトルの各成分をIntegerに変換したベクトルを返します。
このメソッドは deprecated です。 map(&:to_i) を使ってください。
//emlist[例][ruby]{
require 'matrix'
v = Vector.elements([2.5, 3.0, 5.01, 7])
p v.elements_to_i
# => Vector[2, 3, 5, 7]
//} -
Vector
# elements _ to _ r -> Vector (27643.0) -
ベクトルの各成分をRationalに変換したベクトルを返します。
ベクトルの各成分をRationalに変換したベクトルを返します。
このメソッドは deprecated です。 map(&:to_r) を使ってください。
//emlist[例][ruby]{
require 'matrix'
v = Vector.elements([2.5, 3.0, 5.75, 7])
p v.elements_to_r
# => Vector[(5/2), (3/1), (23/4), (7/1)]
//} -
URI
:: MailTo # to _ mailtext -> String (27346.0) -
URI オブジェクトからメールテキスト文字列を生成します。
URI オブジェクトからメールテキスト文字列を生成します。
例:
require 'uri'
p mailto = URI.parse("mailto:ruby-list@ruby-lang.org?subject=subscribe&cc=myaddr")
print mailto.to_mailtext
=> #<URI::MailTo:0x20104a0e URL:mailto:ruby-list@ruby-lang.org?subject=subscribe&cc=myaddr>
To: ruby-list@ruby-lang.org
Sub... -
URI
:: MailTo # to _ rfc822text -> String (27346.0) -
URI オブジェクトからメールテキスト文字列を生成します。
URI オブジェクトからメールテキスト文字列を生成します。
例:
require 'uri'
p mailto = URI.parse("mailto:ruby-list@ruby-lang.org?subject=subscribe&cc=myaddr")
print mailto.to_mailtext
=> #<URI::MailTo:0x20104a0e URL:mailto:ruby-list@ruby-lang.org?subject=subscribe&cc=myaddr>
To: ruby-list@ruby-lang.org
Sub... -
Delegator
# respond _ to?(m) -> bool (27325.0) -
Delegator#__getobj__ が返すオブジェクトが メソッド m を持つとき真を返します。
Delegator#__getobj__ が返すオブジェクトが メソッド m を持つとき真を返します。
@param m メソッド名
@see Object#respond_to? -
URI
:: MailTo # to=(s) (27325.0) -
自身の e-mail アドレスを文字列で設定します。
自身の e-mail アドレスを文字列で設定します。
@param s 自身の e-mail アドレスを文字列で指定します。
@raise URI::InvalidComponentError 不正な引数 s に対して発生します。
例:
require 'uri'
m = URI.parse("mailto:nospam@example.com")
m.to = "nospaaaam@example.com"
p m #=> #<URI::MailTo:0xb7bf0614 URL:mailt... -
Vector
# to _ a -> Array (27325.0) -
ベクトル(Vector)から配列 (Array) に変換します。
ベクトル(Vector)から配列 (Array) に変換します。
//emlist[例][ruby]{
require 'matrix'
v = Vector[2, 3, 5, 7, 9]
p v.to_a
# => [2, 3, 5, 7, 9]
//} -
Vector
# to _ s -> String (27325.0) -
ベクトル(Vector)から文字列 (String) に変換します。
ベクトル(Vector)から文字列 (String) に変換します。
//emlist[例][ruby]{
require 'matrix'
v = Vector[2, 3, 5, 7, 9]
p v.to_s
# => "Vector[2, 3, 5, 7, 9]"
//} -
Delegator
# respond _ to _ missing?(m , include _ private) -> bool (27307.0) -
@param m メソッド名を指定します。
@param m メソッド名を指定します。
@param include_private 真を指定すると private メソッドも調べます。 -
CGI
:: Session :: FileStore # restore -> Hash (27304.0) -
セッションの状態をファイルから復元したハッシュを返します。
セッションの状態をファイルから復元したハッシュを返します。 -
CGI
:: Session :: MemoryStore # restore -> Hash (27304.0) -
セッションの状態を復元したハッシュを返します。
セッションの状態を復元したハッシュを返します。 -
CGI
:: Session :: NullStore # restore -> Hash (27304.0) -
セッションの状態を復元したハッシュを返します。 このクラスでは何もしません。
セッションの状態を復元したハッシュを返します。
このクラスでは何もしません。 -
CGI
:: Session :: PStore # restore -> Hash (27304.0) -
セッションの状態をファイルから復元したハッシュを返します。
セッションの状態をファイルから復元したハッシュを返します。 -
Delegator
# _ _ getobj _ _ -> object (27304.0) -
委譲先のオブジェクトを返します。
委譲先のオブジェクトを返します。
本メソッドは、サブクラスで再定義する必要があり、
デフォルトでは NotImplementedError が発生します。
@raise NotImplementedError サブクラスにて本メソッドが再定義されていない場合に発生します。 -
Delegator
# _ _ setobj _ _ (obj) -> object (27304.0) -
委譲先のオブジェクトをセットします。
委譲先のオブジェクトをセットします。
@param obj 委譲先のオブジェクトを指定します。
@raise NotImplementedError サブクラスにて本メソッドが再定義されていない場合に発生します。 -
IRB
:: HistorySavingAbility # load _ history -> () (27304.0) -
irb のヒストリを履歴ファイルから読み込みます。
irb のヒストリを履歴ファイルから読み込みます。
@see lib:irb#history -
IRB
:: HistorySavingAbility # save _ history -> () (27304.0) -
irb のヒストリを履歴ファイルに保存します。
irb のヒストリを履歴ファイルに保存します。
@see lib:irb#history -
RSS
:: TaxonomyTopicModel # taxo _ topic (27304.0) -
@todo
@todo -
RSS
:: TaxonomyTopicModel # taxo _ topic= (27304.0) -
@todo
@todo -
RSS
:: TaxonomyTopicsModel # taxo _ topics (27304.0) -
@todo
@todo -
SimpleDelegator
# _ _ getobj _ _ -> object (27304.0) -
委譲先のオブジェクトを返します。
委譲先のオブジェクトを返します。
@see Delegator#__getobj__ -
SimpleDelegator
# _ _ setobj _ _ (obj) -> object (27304.0) -
委譲先のオブジェクトを obj に変更します。
委譲先のオブジェクトを obj に変更します。
メソッド委譲を行うためのクラスメソッドの再定義は行われないことに注意してください。
メソッド委譲を行うためのクラスメソッドの定義は生成時にのみ行われます。
そのため、以前の委譲先オブジェクトと
obj の間で呼び出せるメソッドに違いがあった場合は、
何かしらの例外が発生する可能性があります。
@param obj 委譲先のオブジェクト
@return 変更後の委譲先オブジェクト -
Vector
# covector -> Matrix (27304.0) -
Matrix オブジェクトへ変換します。
Matrix オブジェクトへ変換します。
列ベクトル (行列)、すなわち、(n, 1) 型の行列に変換します。
実際には Matrix.row_vector(self) を適用します。
//emlist[例][ruby]{
require 'matrix'
v = Vector[2, 3, 5]
p v # => Vector[2, 3, 5]
m = v.covector
p m # => Matrix[[2, 3, 5]]
//} -
OpenSSL
:: PKey :: EC :: Group # set _ generator(generator , order , cofactor) -> self (18904.0) -
群のパラメータを設定します。
群のパラメータを設定します。
@param generator 生成元(OpenSSL::PKey::EC::Point オブジェクト)
@param order 生成元の位数(OpenSSL::BN オブジェクト)
@param cofactor 余因子OpenSSL::BN オブジェクト
@raise OpenSSL::PKey::EC::Group::Error 設定に失敗した場合に発生します -
OpenSSL
:: BN # to _ s(base=10) -> String (18811.0) -
自身を表す文字列を返します。
自身を表す文字列を返します。
base で、変換方法(基数)を指定します。
デフォルトは 10 で、他に 16, 2, 0 を指定できます。
10 10進数の表記
16 16進数の表記
2 big-endianの符号無し整数のバイナリ列
0 MPI形式の文字列(バイト列)
@param base 文字列への変換方法(基数)
@raise OpenSSL::BNError 変換に失敗した場合に発生します
//emlist[][ruby]{
require 'openssl'
p 10.to_bn.to_s # => "10"
p (-5).to_bn.... -
Enumerator
:: Lazy # to _ enum(method = :each , *args) -> Enumerator :: Lazy (18730.0) -
Object#to_enum と同じですが、Enumerator::Lazy を返します。
Object#to_enum と同じですが、Enumerator::Lazy を返します。
to_enum は「ブロック付きで呼ぶとループを実行し、ブロックを省略した場合は
Enumerator を返す」ようなメソッドを定義するときによく使われます。
このときに lazy 性が正しく引き継がれるように、Lazy#to_enum は
素のEnumerator ではなく Enumerator::Lazy を返すようになっています。
//emlist[例][ruby]{
module Enumerable
# 要素をn回ずつ繰り返すメソッド
# 例:[1,2,3].repeat(2) ... -
Enumerator
:: Lazy # to _ enum(method = :each , *args) {|*args| block} -> Enumerator :: Lazy (18730.0) -
Object#to_enum と同じですが、Enumerator::Lazy を返します。
Object#to_enum と同じですが、Enumerator::Lazy を返します。
to_enum は「ブロック付きで呼ぶとループを実行し、ブロックを省略した場合は
Enumerator を返す」ようなメソッドを定義するときによく使われます。
このときに lazy 性が正しく引き継がれるように、Lazy#to_enum は
素のEnumerator ではなく Enumerator::Lazy を返すようになっています。
//emlist[例][ruby]{
module Enumerable
# 要素をn回ずつ繰り返すメソッド
# 例:[1,2,3].repeat(2) ... -
Net
:: SMTP # rcptto _ list(to _ addrs) { . . . } -> object (18673.0) -
RCPTTO コマンドを to_addrs のすべてのメールアドレスに対して送ります。
RCPTTO コマンドを to_addrs のすべてのメールアドレスに対して送ります。
コマンドを送った後、ブロックを呼び出します。
このメソッドの返り値はブロックの返り値になります。
通常は Net::SMTP#send_message, Net::SMTP#open_message_stream で
RCPTTO が送られるため利用する必要はないはずです。
@param to_addrs 送信先メールアドレスの配列 -
String
# to _ i(base = 10) -> Integer (18667.0) -
文字列を 10 進数表現された整数であると解釈して、整数に変換します。
文字列を 10 進数表現された整数であると解釈して、整数に変換します。
//emlist[例][ruby]{
p " 10".to_i # => 10
p "+10".to_i # => 10
p "-10".to_i # => -10
p "010".to_i # => 10
p "-010".to_i # => -10
//}
整数とみなせない文字があればそこまでを変換対象とします。
変換対象が空文字列であれば 0 を返します。
//emlist[例][ruby]{
p "0x11".to_i # => 0
p "".to_i # =>... -
Net
:: SMTP # rcptto(to _ addr) -> Net :: SMTP :: Response (18625.0) -
RCPTTO コマンドを送ります。
RCPTTO コマンドを送ります。
通常は Net::SMTP#send_message, Net::SMTP#open_message_stream で
RCPTTO が送られるため利用する必要はないはずです。
@param to_addr 送信先メールアドレス -
Date
# downto(min) -> Enumerator (18604.0) -
このメソッドは、step(min, -1){|date| ...} と等価です。
このメソッドは、step(min, -1){|date| ...} と等価です。
@param min 日付オブジェクト
@see Date#step, Date#upto -
Date
# upto(max) -> Enumerator (18604.0) -
このメソッドは、step(max, 1){|date| ...} と等価です。
このメソッドは、step(max, 1){|date| ...} と等価です。
@param max 日付オブジェクト
@see Date#step, Date#downto -
Integer
# downto(min) -> Enumerator (18604.0) -
self から min まで 1 ずつ減らしながらブロックを繰り返し実行します。 self < min であれば何もしません。
self から min まで 1 ずつ減らしながらブロックを繰り返し実行します。
self < min であれば何もしません。
@param min 数値
@return self を返します。
//emlist[][ruby]{
5.downto(1) {|i| print i, " " } # => 5 4 3 2 1
//}
@see Integer#upto, Numeric#step, Integer#times -
Integer
# upto(max) -> Enumerator (18604.0) -
self から max まで 1 ずつ増やしながら繰り返します。 self > max であれば何もしません。
self から max まで 1 ずつ増やしながら繰り返します。
self > max であれば何もしません。
@param max 数値
@return self を返します。
//emlist[][ruby]{
5.upto(10) {|i| print i, " " } # => 5 6 7 8 9 10
//}
@see Integer#downto, Numeric#step, Integer#times -
Matrix
# column _ vectors -> [Vector] (18604.0) -
自分自身を列ベクトルの配列として返します。
自分自身を列ベクトルの配列として返します。
//emlist[例][ruby]{
require 'matrix'
a1 = [ 1, 2, 3]
a2 = [10, 15, 20]
a3 = [-1, -2, 1.5]
m = Matrix[a1, a2, a3]
p m.column_vectors # => [Vector[1, 10, -1], Vector[2, 15, -2], Vector[3, 20, 1.5]]
//} -
Matrix
# row _ vectors -> [Vector] (18604.0) -
自分自身を行ベクトルの配列として返します。
自分自身を行ベクトルの配列として返します。
//emlist[例][ruby]{
require 'matrix'
a1 = [ 1, 2, 3]
a2 = [10, 15, 20]
a3 = [-1, -2, 1.5]
m = Matrix[a1, a2, a3]
p m.row_vectors # => [Vector[1, 2, 3], Vector[10, 15, 20], Vector[-1, -2, 1.5]]
//} -
Matrix
:: EigenvalueDecomposition # eigenvectors -> [Vector] (18604.0) -
右固有ベクトルを配列で返します。
右固有ベクトルを配列で返します。 -
Net
:: HTTP # cert _ store -> OpenSSL :: X509 :: Store | nil (18604.0) -
接続相手の証明書の検証のために使う、信頼している CA 証明書を 含む証明書ストアを返します。
接続相手の証明書の検証のために使う、信頼している CA 証明書を
含む証明書ストアを返します。
@see Net::HTTP#cert_store, OpenSSL::SSL::SSLContext#cert_store= -
Net
:: HTTP # cert _ store=(store) (18604.0) -
接続相手の証明書の検証のために使う、信頼している CA 証明書を 含む証明書ストアを設定します。
接続相手の証明書の検証のために使う、信頼している CA 証明書を
含む証明書ストアを設定します。
通常は Net::HTTP#ca_file= や Net::HTTP#ca_path= で
設定しますが、より詳細な設定をしたい場合にはこちらを用います。
デフォルトは nil (証明書ストアを指定しない)です。
@see Net::HTTP#cert_store=, OpenSSL::SSL::SSLContext#cert_store -
Object
# singleton _ methods(inherited _ too = true) -> [Symbol] (18604.0) -
そのオブジェクトに対して定義されている特異メソッド名 (public あるいは protected メソッド) の一覧を返します。
そのオブジェクトに対して定義されている特異メソッド名
(public あるいは protected メソッド) の一覧を返します。
inherited_too が真のときは継承した特異メソッドを含みます。
継承した特異メソッドとは Object#extend によって追加された特異メソッドや、
self がクラスの場合はスーパークラスのクラスメソッド(Classのインスタンスの特異メソッド)などです。
singleton_methods(false) は、Object#methods(false) と同じです。
@param inherited_too 継承した特異メソッドを含める場合は... -
OpenSSL
:: SSL :: SSLContext # cert _ store -> OpenSSL :: X509 :: Store | nil (18604.0) -
接続相手の証明書の検証のために使う、信頼している CA 証明書を 含む証明書ストアを返します。
接続相手の証明書の検証のために使う、信頼している CA 証明書を
含む証明書ストアを返します。
デフォルトは nil です。
@see OpenSSL::SSL::SSLContext#cert_store= -
OpenSSL
:: SSL :: SSLContext # cert _ store=(store) (18604.0) -
接続相手の証明書の検証のために使う、信頼している CA 証明書を 含む証明書ストアを設定します。
接続相手の証明書の検証のために使う、信頼している CA 証明書を
含む証明書ストアを設定します。
通常は OpenSSL::SSL::SSLContext#ca_path= や
OpenSSL::SSL::SSLContext#ca_file= で証明書を設定しますが、
CRL を使いたいなど、より詳細な設定をしたい場合にはこれを使います。
デフォルトは nil (証明書ストアを指定しない)です。
@param store 設定する証明書ストア(OpenSSL::X509::Store のインスタンス)
@see OpenSSL::SSL::SSLContext#cert_store -
RDoc
:: Context # toplevel -> RDoc :: TopLevel (18604.0) -
自身が所属する RDoc::TopLevel オブジェクトを返します。
自身が所属する RDoc::TopLevel オブジェクトを返します。 -
RDoc
:: Options # generator -> Generator (18604.0) -
コマンドライン引数の --fmt オプションで指定した文字列に応じた Generator を返します。
コマンドライン引数の --fmt オプションで指定した文字列に応じた
Generator を返します。
指定しなかった場合は、HTML に対応する Generator を返します。 -
String
# to _ c -> Complex (18577.0) -
自身を複素数 (Complex) に変換した結果を返します。
自身を複素数 (Complex) に変換した結果を返します。
以下の形式を解析できます。i、j は大文字、小文字のどちらでも解析できます。
* 実部+虚部i
* 実部+虚部j
* 絶対値@偏角
それぞれの数値は以下のいずれかの形式で指定します。先頭の空白文字や複素
数値の後にある文字列は無視されます。また、数値オブジェクトと同様に各桁
の間に「_」を入れる事ができます。
* "1/3" のような分数の形式
* "0.3" のような10進数の形式
* "0.3E0" のような x.xEn の形式
自身が解析できない値であった場合は 0+0i を返します。
//emlis... -
String
# to _ f -> Float (18559.0) -
文字列を 10 進数表現と解釈して、浮動小数点数 Float に変換します。
文字列を 10 進数表現と解釈して、浮動小数点数 Float に変換します。
浮動小数点数とみなせなくなるところまでを変換対象とします。
途中に変換できないような文字列がある場合、それより先の文字列は無視されます。
//emlist[][ruby]{
p "-10".to_f # => -10.0
p "10e2".to_f # => 1000.0
p "1e-2".to_f # => 0.01
p ".1".to_f # => 0.1
p "1_0_0".to_f # => 100.0 # 数値リテラルと同じように区切りに _ を使える
p " \n10".to_f ... -
String
# to _ r -> Rational (18505.0) -
自身を有理数(Rational)に変換した結果を返します。
自身を有理数(Rational)に変換した結果を返します。
Kernel.#Rational に文字列を指定した時のように、以下のいずれかの形
式で指定します。
* "1/3" のような分数の形式
* "0.3" のような10進数の形式
* "0.3E0" のような x.xEn の形式
* 数字をアンダースコアで繋いだ形式
//emlist[例][ruby]{
' 2 '.to_r # => (2/1)
'1/3'.to_r # => (1/3)
'-9.2'.to_r # => (-46/5)
'-9.2E2'.to_r ... -
BigDecimal
# to _ s -> String (18490.0) -
self を文字列に変換します (デフォルトは "0.xxxxxen" の形になります)。
self を文字列に変換します (デフォルトは "0.xxxxxen" の形になります)。
@param n 出力の形式を Integer または String で指定します。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1.23456").to_s # ==> "0.123456e1"
//}
引数 n に正の整数が指定されたときは、小数点で分けられる左右部分を、
それぞれ n 桁毎に空白で区切ります。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("0.123456... -
BigDecimal
# to _ s(n) -> String (18490.0) -
self を文字列に変換します (デフォルトは "0.xxxxxen" の形になります)。
self を文字列に変換します (デフォルトは "0.xxxxxen" の形になります)。
@param n 出力の形式を Integer または String で指定します。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1.23456").to_s # ==> "0.123456e1"
//}
引数 n に正の整数が指定されたときは、小数点で分けられる左右部分を、
それぞれ n 桁毎に空白で区切ります。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("0.123456... -
Object
# respond _ to _ missing?(symbol , include _ private) -> bool (18487.0) -
自身が symbol で表されるメソッドに対し BasicObject#method_missing で反応するつもりならば真を返します。
自身が symbol で表されるメソッドに対し
BasicObject#method_missing で反応するつもりならば真を返します。
Object#respond_to? はメソッドが定義されていない場合、
デフォルトでこのメソッドを呼びだし問合せます。
BasicObject#method_missing を override した場合にこのメソッドも
override されるべきです。
false を返します。
@param symbol メソッド名シンボル
@param include_private private method も含めたい場合に true が渡されます... -
Rational
# to _ f -> Float (18451.0) -
自身の値を最も良く表現する Float に変換します。
自身の値を最も良く表現する Float に変換します。
絶対値が極端に小さい、または大きい場合にはゼロや無限大が返ることがあります。
@return Float を返します。
//emlist[例][ruby]{
Rational(2).to_f # => 2.0
Rational(9, 4).to_f # => 2.25
Rational(-3, 4).to_f # => -0.75
Rational(20, 3).to_f # => 6.666666666666667
Rational(1, 10**1000... -
Exception
# to _ json(*args) -> String (18415.0) -
自身を JSON 形式の文字列に変換して返します。
自身を JSON 形式の文字列に変換して返します。
内部的にはハッシュにデータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json に渡されます。
//emlist[例][ruby]{
require "json/add/core"
begin
0/0
rescue => e
e.to_json # => "{\"json_class\":\"ZeroDivis... -
Object
# respond _ to?(name , include _ all = false) -> bool (18415.0) -
オブジェクトがメソッド name を持つとき真を返します。
オブジェクトがメソッド name を持つとき真を返します。
オブジェクトが メソッド name を持つというのは、
オブジェクトが メソッド name に応答できることをいいます。
Windows での Process.fork や GNU/Linux での File.lchmod の
ような NotImplementedError が発生する場合は false を返します。
※ NotImplementedError が発生する場合に false を返すのは
Rubyの組み込みライブラリや標準ライブラリなど、C言語で実装されているメソッドのみです。
Rubyで実装されたメソッドで N... -
Rational
# to _ i -> Integer (18415.0) -
小数点以下を切り捨てて値を整数に変換します。
小数点以下を切り捨てて値を整数に変換します。
@param precision 計算結果の精度
@raise TypeError precision に整数以外のものを指定すると発生します。
//emlist[例][ruby]{
Rational(2, 3).to_i # => 0
Rational(3).to_i # => 3
Rational(300.6).to_i # => 300
Rational(98, 71).to_i # => 1
Rational(-31, 2).to_i # => -15
//}
precision を指定した場合は指定した桁数で切り... -
Process
:: Status # to _ s -> String (18403.0) -
to_i.to_s と同じです。
to_i.to_s と同じです。 -
Float
# to _ d -> BigDecimal (18400.0) -
自身を BigDecimal に変換します。
自身を BigDecimal に変換します。
@param prec 計算結果の精度。省略した場合は Float::DIG + 1 です。
@return BigDecimal に変換したオブジェクト
//emlist[][ruby]{
require 'bigdecimal'
require 'bigdecimal/util'
p 1.0.to_d # => 0.1e1
p (1.0 / 0).to_d # => Infinity
p (1.0 / 3).to_d / (2.0 / 3).to_d # => 0.5e0
p ((1.0 / 3) / (2.0 / 3... -
Float
# to _ d(prec) -> BigDecimal (18400.0) -
自身を BigDecimal に変換します。
自身を BigDecimal に変換します。
@param prec 計算結果の精度。省略した場合は Float::DIG + 1 です。
@return BigDecimal に変換したオブジェクト
//emlist[][ruby]{
require 'bigdecimal'
require 'bigdecimal/util'
p 1.0.to_d # => 0.1e1
p (1.0 / 0).to_d # => Infinity
p (1.0 / 3).to_d / (2.0 / 3).to_d # => 0.5e0
p ((1.0 / 3) / (2.0 / 3... -
String
# to _ s -> String (18400.0) -
self を返します。
self を返します。
//emlist[例][ruby]{
p "str".to_s # => "str"
p "str".to_str # => "str"
//}
このメソッドは、文字列を他のクラスのインスタンスと混ぜて処理したいときに有効です。
例えば返り値が文字列か nil であるメソッド some_method があるとき、
to_s メソッドを使うと以下のように統一的に処理できます。
//emlist[例][ruby]{
# some_method(5).downcase だと返り値が nil のときに
# エラーになるので to_s をはさむ
p some_... -
String
# to _ str -> String (18400.0) -
self を返します。
self を返します。
//emlist[例][ruby]{
p "str".to_s # => "str"
p "str".to_str # => "str"
//}
このメソッドは、文字列を他のクラスのインスタンスと混ぜて処理したいときに有効です。
例えば返り値が文字列か nil であるメソッド some_method があるとき、
to_s メソッドを使うと以下のように統一的に処理できます。
//emlist[例][ruby]{
# some_method(5).downcase だと返り値が nil のときに
# エラーになるので to_s をはさむ
p some_... -
Addrinfo
# ipv6 _ to _ ipv4 -> Addrinfo|nil (18397.0) -
IPv6 の v4 マップド/互換アドレスを v4 のアドレスに変換します。
IPv6 の v4 マップド/互換アドレスを v4 のアドレスに変換します。
それ以外のアドレスの場合 nil を返します。
require 'socket'
Addrinfo.ip("::192.0.2.3").ipv6_to_ipv4 #=> #<Addrinfo: 192.0.2.3>
Addrinfo.ip("::ffff:192.0.2.3").ipv6_to_ipv4 #=> #<Addrinfo: 192.0.2.3>
Addrinfo.ip("::1").ipv6_to_ipv4 #=> nil
Addrinfo.i... -
Array
# to _ a -> Array (18397.0) -
self を返します。ただし、Array のサブクラスのインスタンスに対して呼ばれた時は、 自身を Array に変換したものを返します。
self を返します。ただし、Array のサブクラスのインスタンスに対して呼ばれた時は、
自身を Array に変換したものを返します。
//emlist[例][ruby]{
class SubArray < Array; end
ary1 = Array([1, 2, 3, 4])
ary2 = SubArray([1, 2, 3, 4])
ary1.to_a # => [1, 2, 3, 4]
ary1.to_a.class # => Array
ary2.to_a # => [1, 2, 3, 4]
ary2.to_a.class # => Ar... -
Array
# to _ ary -> self (18397.0) -
self をそのまま返します。
self をそのまま返します。
//emlist[例][ruby]{
class SubArray < Array; end
ary1 = Array([1, 2, 3, 4])
ary2 = SubArray([1, 2, 3, 4])
ary1.to_ary # => [1, 2, 3, 4]
ary1.to_ary.class # => Array
ary2.to_ary # => [1, 2, 3, 4]
ary2.to_ary.class # => SubArray
//}
@see Array#to_a -
Complex
# to _ s -> String (18397.0) -
自身を "実部 + 虚部i" 形式の文字列にして返します。
自身を "実部 + 虚部i" 形式の文字列にして返します。
//emlist[例][ruby]{
Complex(2).to_s # => "2+0i"
Complex('-8/6').to_s # => "-4/3+0i"
Complex('1/2i').to_s # => "0+1/2i"
Complex(0, Float::INFINITY).to_s # => "0+Infinity*i"
Complex(Float::NAN, Float::NAN).to_s... -
Integer
# to _ f -> Float (18397.0) -
self を浮動小数点数(Float)に変換します。
self を浮動小数点数(Float)に変換します。
self が Float の範囲に収まらない場合、Float::INFINITY を返します。
//emlist[][ruby]{
1.to_f # => 1.0
(Float::MAX.to_i * 2).to_f # => Infinity
(-Float::MAX.to_i * 2).to_f # => -Infinity
//} -
OpenSSL
:: X509 :: Name # to _ s(flags=nil) -> String (18397.0) -
DNの文字列表現を返します。
DNの文字列表現を返します。
flags には通常は以下のいずれかを渡します。
* nil
* OpenSSL::X509::Name::COMPAT
* OpenSSL::X509::Name::RFC2253
* OpenSSL::X509::Name::ONELINE
* OpenSSL::X509::Name::MULTILINE
*
例:
require 'openssl'
n = OpenSSL::X509::Name.parse('/C=JP/ST=Kanagawa/L=Yokohama/O=Example Company/OU=Lab3/CN... -
Symbol
# to _ proc -> Proc (18397.0) -
self に対応する Proc オブジェクトを返します。
self に対応する Proc オブジェクトを返します。
生成される Proc オブジェクトを呼びだす(Proc#call)と、
Proc#callの第一引数をレシーバとして、 self という名前のメソッドを
残りの引数を渡して呼びだします。
//emlist[明示的に呼ぶ例][ruby]{
:to_i.to_proc["ff", 16] # => 255 ← "ff".to_i(16)と同じ
//}
//emlist[暗黙に呼ばれる例][ruby]{
# メソッドに & とともにシンボルを渡すと
# to_proc が呼ばれて Proc 化され、
# それがブロックとして渡される... -
Numeric
# to _ int -> Integer (18391.0) -
self.to_i と同じです。
self.to_i と同じです。
//emlist[例][ruby]{
(2+0i).to_int # => 2
Rational(3).to_int # => 3
//} -
Range
# to _ s -> String (18391.0) -
self を文字列に変換します(始端と終端のオブジェクトは #to_s メソッドで文 字列に変換されます)。
self を文字列に変換します(始端と終端のオブジェクトは #to_s メソッドで文
字列に変換されます)。
@see Range#inspect
//emlist[例][ruby]{
(1..5).to_s # => "1..5"
("1".."5").to_s # => "1..5"
//} -
Enumerable
# to _ set(klass = Set , *args) -> Set (18382.0) -
Enumerable オブジェクトの要素から、新しい集合オブジェクトを作ります。
Enumerable オブジェクトの要素から、新しい集合オブジェクトを作ります。
引数 klass を与えた場合、Set クラスの代わりに、指定した集合クラスの
インスタンスを作ります。
この引数を指定することで、SortedSet あるいはその他のユーザ定義の
集合クラスのインスタンスを作ることができます
(ここでいう集合クラスとは、Setとメソッド/クラスメソッドで互換性のあるクラスです)。
引数 args およびブロックは、集合オブジェクトを生成するための new
メソッドに渡されます。
@param klass 生成する集合クラスを指定します。
@param args 集合クラ... -
Enumerable
# to _ set(klass = Set , *args) {|o| . . . } -> Set (18382.0) -
Enumerable オブジェクトの要素から、新しい集合オブジェクトを作ります。
Enumerable オブジェクトの要素から、新しい集合オブジェクトを作ります。
引数 klass を与えた場合、Set クラスの代わりに、指定した集合クラスの
インスタンスを作ります。
この引数を指定することで、SortedSet あるいはその他のユーザ定義の
集合クラスのインスタンスを作ることができます
(ここでいう集合クラスとは、Setとメソッド/クラスメソッドで互換性のあるクラスです)。
引数 args およびブロックは、集合オブジェクトを生成するための new
メソッドに渡されます。
@param klass 生成する集合クラスを指定します。
@param args 集合クラ... -
Object
# psych _ to _ yaml(options = {}) -> String (18382.0) -
オブジェクトを YAML document に変換します。
オブジェクトを YAML document に変換します。
options でオプションを指定できます。
Psych.dump と同じなので詳しくはそちらを参照してください。
syck に to_yaml メソッドがあるため、
psych_to_yaml が別名として定義されています。将来的に
syck が廃止された場合 psych_to_yaml は廃止
される予定であるため、特別の事情がない限り to_yaml を用いてください。
@param options 出力オプション
@see Psych.dump -
Object
# to _ yaml(options = {}) -> String (18382.0) -
オブジェクトを YAML document に変換します。
オブジェクトを YAML document に変換します。
options でオプションを指定できます。
Psych.dump と同じなので詳しくはそちらを参照してください。
syck に to_yaml メソッドがあるため、
psych_to_yaml が別名として定義されています。将来的に
syck が廃止された場合 psych_to_yaml は廃止
される予定であるため、特別の事情がない限り to_yaml を用いてください。
@param options 出力オプション
@see Psych.dump -
Date
# to _ json(*args) -> String (18379.0) -
自身を JSON 形式の文字列に変換して返します。
自身を JSON 形式の文字列に変換して返します。
内部的にはハッシュにデータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json に渡されます。
//emlist[例][ruby]{
require "json/add/core"
Date.today.to_json
# => "{\"json_class\":\"Date\",\"y\":2018,\"m\":12... -
DateTime
# to _ json(*args) -> String (18379.0) -
自身を JSON 形式の文字列に変換して返します。
自身を JSON 形式の文字列に変換して返します。
内部的にはハッシュにデータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json に渡されます。
//emlist[例][ruby]{
require "json/add/core"
DateTime.now.to_json
# => "{\"json_class\":\"DateTime\",\"y\":2018,\"... -
Hash
# to _ h -> self | Hash (18379.0) -
self を返します。Hash クラスのサブクラスから呼び出した場合は self を Hash オブジェクトに変換します。
self を返します。Hash クラスのサブクラスから呼び出した場合は
self を Hash オブジェクトに変換します。
//emlist[例][ruby]{
hash = {}
p hash.to_h # => {}
p hash.to_h == hash # => true
class MyHash < Hash;end
my_hash = MyHash.new
p my_hash.to_h # => {}
p my_hash.class # => MyHash
p my_hash.to_h.class # => Hash
//} -
Hash
# to _ hash -> self (18379.0) -
self を返します。
self を返します。
//emlist[例][ruby]{
hash = {}
p hash.to_hash # => {}
p hash.to_hash == hash # => true
//}
@see Object#to_hash, Hash#to_h -
Integer
# to _ bn -> OpenSSL :: BN (18379.0) -
Integer を同じ数を表す OpenSSL::BN のオブジェクトに 変換します。
Integer を同じ数を表す OpenSSL::BN のオブジェクトに
変換します。
//emlist[][ruby]{
require 'pp'
require 'openssl'
pp 5.to_bn #=> #<OpenSSL::BN 5>
pp (-5).to_bn #=> #<OpenSSL::BN -5>
//}
なお、実装は、以下のようになっています。
//emlist[][ruby]{
class Integer
def to_bn
OpenSSL::BN::new(self)
end
end
//}
@see OpenSSL::BN.n... -
Numeric
# to _ c -> Complex (18379.0) -
自身を複素数 (Complex) に変換します。Complex(self, 0) を返します。
自身を複素数 (Complex) に変換します。Complex(self, 0) を返します。
//emlist[例][ruby]{
1.to_c # => (1+0i)
-1.to_c # => (-1+0i)
1.0.to_c # => (1.0+0i)
Rational(1, 2).to_c # => ((1/2)+0i)
//}
Numeric のサブクラスは、このメソッドを適切に再定義しなければなりません。 -
Object
# to _ a -> Array (18379.0) -
オブジェクトを配列に変換した結果を返します。 デフォルトでは定義されていません。
オブジェクトを配列に変換した結果を返します。
デフォルトでは定義されていません。
説明のためここに記載してありますが、
このメソッドは実際には Object クラスには定義されていません。
必要に応じてサブクラスで定義すべきものです。
//emlist[][ruby]{
p( {'a'=>1}.to_a ) # [["a", 1]]
p ['array'].to_a # ["array"]
p nil.to_a # []
//}
@see Object#to_ary,Kernel.#Array -
Range
# to _ json(*args) -> String (18379.0) -
自身を JSON 形式の文字列に変換して返します。
自身を JSON 形式の文字列に変換して返します。
内部的にはハッシュにデータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json に渡されます。
//emlist[例][ruby]{
require "json/add/core"
(1..5).to_json # => "{\"json_class\":\"Range\",\"a\":[1,5,false]}"
//... -
Rational
# to _ s -> String (18379.0) -
自身を人間が読みやすい形の文字列表現にして返します。
自身を人間が読みやすい形の文字列表現にして返します。
"3/5", "-17/7" のように10進数の表記を返します。
@return 有理数の表記にした文字列を返します。
//emlist[例][ruby]{
Rational(3, 4).to_s # => "3/4"
Rational(8).to_s # => "8/1"
Rational(-8, 6).to_s # => "-4/3"
Rational(0.5).to_s # => "1/2"
//}
@see Rational#inspect -
Struct
# to _ json(*args) -> String (18379.0) -
自身を JSON 形式の文字列に変換して返します。
自身を JSON 形式の文字列に変換して返します。
内部的にはハッシュにデータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json に渡されます。
//emlist[例][ruby]{
require "json/add/core"
Person = Struct.new(:name, :age)
Person.new("tanaka", 29).to_json # =... -
Thread
:: Backtrace :: Location # to _ s -> String (18379.0) -
self が表すフレームを Kernel.#caller と同じ表現にした文字列を返し ます。
self が表すフレームを Kernel.#caller と同じ表現にした文字列を返し
ます。
//emlist[例][ruby]{
# foo.rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end
Foo.new(0..2).locations.map do |call|
puts call.to_s
end
# => path/to/foo.rb:5:in `initialize'
# path/to/foo... -
Time
# to _ json(*args) -> String (18379.0) -
自身を JSON 形式の文字列に変換して返します。
自身を JSON 形式の文字列に変換して返します。
内部的にはハッシュにデータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json に渡されます。
//emlist[例][ruby]{
require "json/add/core"
Time.now.to_json # => "{\"json_class\":\"Time\",\"s\":1544968675,\"n\... -
CSV
# to _ io -> self (18373.0) -
IO#to_io に委譲します。
IO#to_io に委譲します。
@see IO#to_io