ライブラリ
- ビルトイン (541)
- 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 (84)
- mkmf (5)
- monitor (17)
-
net
/ ftp (7) -
net
/ http (6) -
net
/ imap (8) -
net
/ pop (1) -
net
/ smtp (9) - openssl (140)
- 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 (5)
- 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 (5)
- 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 (38)
- 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 (28)
-
OpenSSL
:: ASN1 :: ASN1Data (1) -
OpenSSL
:: BN (14) -
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 (3)
- Shell (9)
-
Shell
:: CommandProcessor (7) -
Shell
:: Filter (12) - SimpleDelegator (2)
-
Socket
:: Option (2) - StopIteration (1)
- String (46)
- StringIO (11)
- Struct (9)
- Symbol (28)
- Thread (9)
-
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 (44)
-
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 (9)
-
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
_ grapheme _ cluster (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)
-
grapheme
_ clusters (2) - 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 (24)
- 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
_ locked? (1) -
mon
_ owned? (1) -
mon
_ synchronize (1) -
mon
_ try _ enter (1) - mtime (1)
- name (8)
- negative? (1)
-
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 (103) -
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
_ keys (2) -
transform
_ keys! (2) -
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)
-
yield
_ self (2) - zero? (2)
- zip (6)
- | (2)
検索結果
先頭5件
-
Pathname
# to _ path -> String (18373.0) -
File.open などの引数に渡す際に呼ばれるメソッドです。 Pathname オブジェ クトにおいては、 to_s と同じです。
File.open などの引数に渡す際に呼ばれるメソッドです。 Pathname オブジェ
クトにおいては、 to_s と同じです。
@see Pathname#to_s -
ARGF
. class # to _ io -> IO (18361.0) -
ARGFが現在開いているファイルのFile、またはIOオブジェクトを 返します。
ARGFが現在開いているファイルのFile、またはIOオブジェクトを
返します。
ARGF.to_io # => #<File:glark.txt>
ARGF.to_io # => #<IO:<STDIN>>
@see ARGF.class#file, ARGF.class#to_write_io -
BigDecimal
# to _ json(*args) -> String (18361.0) -
自身を JSON 形式の文字列に変換して返します。
自身を JSON 形式の文字列に変換して返します。
内部的にはハッシュにデータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 使用しません。
//emlist[例][ruby]{
require 'json/add/bigdecimal'
BigDecimal('0.123456789123456789').to_json # => "{\"json_class\":\"BigDecimal\",\"b\":\"36:0.123456789123456789e0\"}"
//... -
Complex
# to _ f -> Float (18361.0) -
自身を Float に変換します。
自身を Float に変換します。
@raise RangeError 虚部が実数か、0 ではない場合に発生します。
//emlist[例][ruby]{
Complex(3).to_f # => 3.0
Complex(3.5).to_f # => 3.5
Complex(3, 2).to_f # => RangeError
//} -
Complex
# to _ i -> Integer (18361.0) -
自身を整数に変換します。
自身を整数に変換します。
@raise RangeError 虚部が実数か、0 ではない場合に発生します。
//emlist[例][ruby]{
Complex(3).to_i # => 3
Complex(3.5).to_i # => 3
Complex(3, 2).to_i # => RangeError
//} -
Complex
# to _ json(*args) -> String (18361.0) -
自身を JSON 形式の文字列に変換して返します。
自身を JSON 形式の文字列に変換して返します。
内部的にはハッシュにデータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 使用しません。
//emlist[例][ruby]{
require 'json/add/complex'
Complex(2, 3).to_json # => "{\"json_class\":\"Complex\",\"r\":2,\"i\":3}"
//}
@see JSON::Generator::GeneratorMethods::Hash... -
IPAddr
# to _ s -> String (18361.0) -
文字列に変換します。
文字列に変換します。
require 'ipaddr'
addr6 = IPAddr.new('::1')
addr6.to_s #=> "::1"
addr6.to_string #=> "0000:0000:0000:0000:0000:0000:0000:0001"
@see IPAddr#to_string -
IPAddr
# to _ string -> String (18361.0) -
標準的な文字列表現に変換します。
標準的な文字列表現に変換します。
require 'ipaddr'
addr6 = IPAddr.new('::1')
addr6.to_s #=> "::1"
addr6.to_string #=> "0000:0000:0000:0000:0000:0000:0000:0001"
@see IPAddr#to_s -
OpenStruct
# to _ json(*args) -> String (18361.0) -
自身を JSON 形式の文字列に変換して返します。
自身を JSON 形式の文字列に変換して返します。
内部的にはハッシュにデータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json に渡されます。
@see JSON::Generator::GeneratorMethods::Hash#to_json -
Rational
# to _ json(*args) -> String (18361.0) -
自身を JSON 形式の文字列に変換して返します。
自身を JSON 形式の文字列に変換して返します。
内部的にはハッシュにデータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 使用しません。
//emlist[例][ruby]{
require 'json/add/rational'
Rational(1, 3).to_json # => "{\"json_class\":\"Rational\",\"n\":1,\"d\":3}"
//}
@see JSON::Generator::GeneratorMethods::H... -
Symbol
# to _ json(*args) -> String (18361.0) -
自身を JSON 形式の文字列に変換して返します。
自身を JSON 形式の文字列に変換して返します。
内部的にはハッシュにデータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json に渡されます。
@see JSON::Generator::GeneratorMethods::Hash#to_json -
Net
:: IMAP :: Envelope # in _ reply _ to -> String | nil (18355.0) -
In-reply-to の内容を文字列で返します。
In-reply-to の内容を文字列で返します。
エンベロープに存在しないときは nil を返します。 -
Net
:: IMAP :: Envelope # reply _ to -> [Net :: IMAP :: Address] | nil (18355.0) -
Reply-To を Net::IMAP::Address オブジェクトの配列で返します。
Reply-To を Net::IMAP::Address オブジェクトの配列で返します。
エンベロープに存在しないときは nil を返します。 -
Pathname
# directory? -> bool (18352.0) -
FileTest.directory?(self.to_s) と同じです。
FileTest.directory?(self.to_s) と同じです。
@see FileTest.#directory? -
CSV
:: Row # to _ csv -> String (18346.0) -
自身を CSV な文字列として返します。ヘッダは使用しません。
自身を CSV な文字列として返します。ヘッダは使用しません。
//emlist[例][ruby]{
require "csv"
row = CSV::Row.new(["header1", "header2"], [1, 2])
row.to_csv # => "1,2\n"
row.to_csv( {col_sep: "|", row_sep: "<br>"} ) # => "1|2<br>"
//} -
CSV
:: Row # to _ s -> String (18346.0) -
自身を CSV な文字列として返します。ヘッダは使用しません。
自身を CSV な文字列として返します。ヘッダは使用しません。
//emlist[例][ruby]{
require "csv"
row = CSV::Row.new(["header1", "header2"], [1, 2])
row.to_csv # => "1,2\n"
row.to_csv( {col_sep: "|", row_sep: "<br>"} ) # => "1|2<br>"
//} -
CSV
:: Table # to _ csv(options = Hash . new) -> String (18346.0) -
CSV の文字列に変換して返します。
CSV の文字列に変換して返します。
ヘッダを一行目に出力します。その後に残りのデータを出力します。
デフォルトでは、ヘッダを出力します。オプションに :write_headers =>
false を指定するとヘッダを出力しません。
//emlist[][ruby]{
require 'csv'
csv = CSV.new("a,b,c\n1,2,3", headers: true)
table = csv.read
p table.to_csv # => "a,b,c\n1,2,3\n"
p table.to_csv(write_head... -
CSV
:: Table # to _ s(options = Hash . new) -> String (18346.0) -
CSV の文字列に変換して返します。
CSV の文字列に変換して返します。
ヘッダを一行目に出力します。その後に残りのデータを出力します。
デフォルトでは、ヘッダを出力します。オプションに :write_headers =>
false を指定するとヘッダを出力しません。
//emlist[][ruby]{
require 'csv'
csv = CSV.new("a,b,c\n1,2,3", headers: true)
table = csv.read
p table.to_csv # => "a,b,c\n1,2,3\n"
p table.to_csv(write_head... -
Array
# to _ csv(**options) -> String (18343.0) -
CSV.generate_line(self, options) と同様です。
CSV.generate_line(self, options) と同様です。
Array オブジェクトを 1 行の CSV 文字列に変換するためのショートカットです。
@param options CSV.generate_line と同様のオプションを指定します。
//emlist[][ruby]{
require 'csv'
p [1, 'Matz', :Ruby, Date.new(1965, 4, 14)].to_csv # => "1,Matz,Ruby,1965-04-14\n"
p [1, 'Matz',... -
Complex
# to _ c -> self (18343.0) -
self を返します。
self を返します。
//emlist[例][ruby]{
Complex(2).to_c # => (2+0i)
Complex(-8, 6).to_c # => (-8+6i)
//} -
IPAddr
# to _ range -> Range (18343.0) -
self の IP アドレスとサブネットマスクで取得できる IP アドレスの範囲を Range オブジェクトとして返します。
self の IP アドレスとサブネットマスクで取得できる IP アドレスの範囲を
Range オブジェクトとして返します。
例:
require 'ipaddr'
IPAddr.new('192.168.1.1').to_range
#=> #<IPAddr: IPv4:192.168.1.1/255.255.255.255>..#<IPAddr: IPv4:192.168.1.1/255.255.255.255>
IPAddr.new('::1').to_range
#=> #<IPAddr: IPv6:0000:0000:0000:0000:0000:0000:... -
Integer
# to _ r -> Rational (18343.0) -
自身を Rational に変換します。
自身を Rational に変換します。
//emlist[][ruby]{
1.to_r # => (1/1)
(1<<64).to_r # => (18446744073709551616/1)
//} -
Object
# to _ ary -> Array (18343.0) -
オブジェクトの Array への暗黙の変換が必要なときに内部で呼ばれます。 デフォルトでは定義されていません。
オブジェクトの Array への暗黙の変換が必要なときに内部で呼ばれます。
デフォルトでは定義されていません。
説明のためここに記載してありますが、
このメソッドは実際には Object クラスには定義されていません。
必要に応じてサブクラスで定義すべきものです。
このメソッドを定義する条件は、
* 配列が使われるすべての場面で代置可能であるような、
* 配列そのものとみなせるようなもの
という厳しいものになっています。
//emlist[][ruby]{
class Foo
def to_ary
[3,4]
end
end
it = Foo.new
p([1,2... -
Object
# to _ s -> String (18343.0) -
オブジェクトの文字列表現を返します。
オブジェクトの文字列表現を返します。
Kernel.#print や Kernel.#sprintf は文字列以外の
オブジェクトが引数に渡された場合このメソッドを使って文字列に変換し
ます。
//emlist[][ruby]{
class Foo
def initialize num
@num = num
end
end
it = Foo.new(40)
puts it #=> #<Foo:0x2b69110>
class Foo
def to_s
"Class:Foo Number:#{@num}"
end
end
puts it #=> Cla... -
Object
# to _ str -> String (18343.0) -
オブジェクトの String への暗黙の変換が必要なときに内部で呼ばれます。 デフォルトでは定義されていません。
オブジェクトの String への暗黙の変換が必要なときに内部で呼ばれます。
デフォルトでは定義されていません。
説明のためここに記載してありますが、
このメソッドは実際には Object クラスには定義されていません。
必要に応じてサブクラスで定義すべきものです。
このメソッドを定義する条件は、
* 文字列が使われるすべての場面で代置可能であるような、
* 文字列そのものとみなせるようなもの
という厳しいものになっています。
//emlist[][ruby]{
class Foo
def to_str
'Edition'
end
end
it = Foo.new... -
REXML
:: Elements # to _ a(xpath = nil) -> [REXML :: Element] (18343.0) -
すべての子要素の配列を返します。
すべての子要素の配列を返します。
xpath を指定した場合は、その XPath 文字列に
マッチする要素の配列を返します。
REXML::Elements#each と同様、REXML::XPath.match などと
異なり、要素以外の子ノードは無視されます。
@param xpath XPath文字列
//emlist[][ruby]{
require 'rexml/document'
require 'rexml/xpath'
doc = REXML::Document.new '<a>sean<b/>elliott<c/></a>'
doc.root.elements.to_... -
Rational
# to _ d(nFig) -> BigDecimal (18343.0) -
自身を BigDecimal に変換します。
自身を BigDecimal に変換します。
nFig 桁まで計算を行います。
@param nFig 計算を行う桁数
@return BigDecimal に変換したオブジェクト
@raise ArgumentError nFig に 0 以下を指定した場合に発生します。
//emlist[][ruby]{
require "bigdecimal"
require "bigdecimal/util"
p Rational(1, 3).to_d(3) # => 0.333e0
p Rational(1, 3).to_d(10) # => 0.3333333333e0
//} -
Rational
# to _ r -> Rational (18343.0) -
自身を返します。
自身を返します。
@return 自身を返します。
//emlist[例][ruby]{
Rational(3, 4).to_r # => (3/4)
Rational(8).to_r # => (8/1)
//} -
Regexp
# to _ json(*args) -> String (18343.0) -
自身を JSON 形式の文字列に変換して返します。
自身を JSON 形式の文字列に変換して返します。
内部的にはハッシュにデータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数には何の意味もありません。
//emlist[例][ruby]{
require "json/add/core"
/0\d{1,4}-\d{1,4}-\d{4}/.to_json # => "{\"json_class\":\"Regexp\",\"o\":0,\"s\":\"0\\\\d{1,4}-\\\\d{1,4}-\\\\d{4}\"}"... -
Regexp
# to _ s -> String (18343.0) -
正規表現の文字列表現を生成して返します。返される文字列は他の正規表 現に埋め込んでもその意味が保持されるようになっています。
正規表現の文字列表現を生成して返します。返される文字列は他の正規表
現に埋め込んでもその意味が保持されるようになっています。
//emlist[][ruby]{
re = /foo|bar|baz/i
p re.to_s # => "(?i-mx:foo|bar|baz)"
p /#{re}+/o # => /(?i-mx:foo|bar|baz)+/
//}
ただし、後方参照を含む正規表現は意図通りにはならない場合があります。
この場合は名前付きキャプチャを使用すると影響を受けにくくなります。
//emlist[][ruby]{
re = /(foo|bar)\1... -
RubyVM
:: InstructionSequence # to _ binary(extra _ data = nil) -> String (18343.0) -
バイナリフォーマットでシリアライズされたiseqのデータを文字列として返します。 RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
バイナリフォーマットでシリアライズされたiseqのデータを文字列として返します。
RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
引数の extra_data はバイナリデータと共に保存されます。
RubyVM::InstructionSequence.load_from_binary_extra_data メソッドでこの文字列にアクセス出来ます。
注意: 変換後のバイナリデータはポータブルではありません。 to_binary で得たバイナリデータは他のマシンに移動できません。他... -
Time
# to _ f -> Float (18343.0) -
起算時からの経過秒数を浮動小数点数で返します。1 秒に満たない経過も 表現されます。
起算時からの経過秒数を浮動小数点数で返します。1 秒に満たない経過も
表現されます。
//emlist[][ruby]{
t = Time.local(2000,1,2,3,4,5,6)
p t # => 2000-01-02 03:04:05 +0900
p "%10.6f" % t.to_f # => "946749845.000006"
p t.to_i # => 946749845
//} -
Time
# to _ i -> Integer (18343.0) -
起算時からの経過秒数を整数で返します。
起算時からの経過秒数を整数で返します。
//emlist[][ruby]{
t = Time.local(2000,1,2,3,4,5,6)
p t # => 2000-01-02 03:04:05 +0900
p "%10.6f" % t.to_f # => "946749845.000006"
p t.to_i # => 946749845
p t.tv_sec # => 946749845
//} -
Time
# to _ s -> String (18343.0) -
時刻を文字列に変換した結果を返します。 以下のようにフォーマット文字列を使って strftime を呼び出すのと同じです。
時刻を文字列に変換した結果を返します。
以下のようにフォーマット文字列を使って strftime を呼び出すのと同じです。
//emlist[][ruby]{
t = Time.local(2000,1,2,3,4,5,6)
p t.to_s # => "2000-01-02 03:04:05 +0900"
p t.strftime("%Y-%m-%d %H:%M:%S %z") # => "2000-01-02 03:04:05 +0900"
p t.utc.to_s #... -
WIN32OLE
# ole _ respond _ to?(name) -> bool (18343.0) -
指定したメソッドをオブジェクトがサポートしているか調べます。
指定したメソッドをオブジェクトがサポートしているか調べます。
OLEオートメーションサーバが引数で指定した名前のメソッド(プロパティ)を
サポートしているかどうかを調べます。
なお、OLEオートメーションの仕様により、メソッド名の大文字、小文字は区別
されません。
@param name 調べるメソッド名を文字列またはシンボルで指定します。
@return nameで指定したメソッドをオブジェクトが提供していれば真を返します。
excel = WIN32OLE.new('Excel.Application')
excel.ole_respond_to?(:quit) #=... -
Addrinfo
# to _ s -> String (18328.0) -
struct sockaddr をパックした形式の文字列に変換します。
struct sockaddr をパックした形式の文字列に変換します。
require 'socket'
Addrinfo.tcp("localhost", 80).to_sockaddr
#=> "\x02\x00\x00P\x7F\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00" -
Addrinfo
# to _ sockaddr -> String (18328.0) -
struct sockaddr をパックした形式の文字列に変換します。
struct sockaddr をパックした形式の文字列に変換します。
require 'socket'
Addrinfo.tcp("localhost", 80).to_sockaddr
#=> "\x02\x00\x00P\x7F\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00" -
Integer
# to _ i -> self (18328.0) -
self を返します。
self を返します。
//emlist[][ruby]{
10.to_i # => 10
//} -
Integer
# to _ int -> self (18328.0) -
self を返します。
self を返します。
//emlist[][ruby]{
10.to_i # => 10
//} -
JSON
:: State # to _ h -> Hash (18328.0) -
自身をハッシュに変換します。
自身をハッシュに変換します。
//emlist[例][ruby]{
require "json"
require "pp"
json_state = JSON::State.new
pp json_state.to_h
# => {:indent=>"",
# :space=>"",
# :space_before=>"",
# :object_nl=>"",
# :array_nl=>"",
# :allow_nan=>false,
# :ascii_only=>false,
# :max_nesting=>100,
# ... -
JSON
:: State # to _ hash -> Hash (18328.0) -
自身をハッシュに変換します。
自身をハッシュに変換します。
//emlist[例][ruby]{
require "json"
require "pp"
json_state = JSON::State.new
pp json_state.to_h
# => {:indent=>"",
# :space=>"",
# :space_before=>"",
# :object_nl=>"",
# :array_nl=>"",
# :allow_nan=>false,
# :ascii_only=>false,
# :max_nesting=>100,
# ... -
Rake
:: FileList # to _ a -> Array (18328.0) -
内部的な配列を返します。
内部的な配列を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
file_list = FileList['a.c', 'b.c']
file_list.to_a # => ["a.c", "b.c"]
end
//} -
Rake
:: FileList # to _ ary -> Array (18328.0) -
内部的な配列を返します。
内部的な配列を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
file_list = FileList['a.c', 'b.c']
file_list.to_a # => ["a.c", "b.c"]
end
//} -
Array
# to _ h -> Hash (18325.0) -
self を [key, value] のペアの配列として解析した結果を Hash にして 返します。
self を [key, value] のペアの配列として解析した結果を Hash にして
返します。
//emlist[例][ruby]{
bar], [1, 2.to_h # => {:foo => :bar, 1 => 2}
//} -
BigDecimal
# to _ digits -> String (18325.0) -
自身を "1234.567" のような十進数の形式にフォーマットした文字列に変換し ます。
自身を "1234.567" のような十進数の形式にフォーマットした文字列に変換し
ます。
@return 十進数の形式にフォーマットした文字列
注意:
このメソッドは非推奨です。BigDecimal#to_s("F") を使用してください。 -
CSV
:: Row # to _ hash -> Hash (18325.0) -
自身をシンプルなハッシュに変換します。
自身をシンプルなハッシュに変換します。
フィールドの順序は無視されます。
重複したフィールドは削除されます。
//emlist[例][ruby]{
require "csv"
row = CSV::Row.new(["header2", "header1", "header2"], [1, 2, 3])
row.to_hash # => {"header2"=>3, "header1"=>2}
//} -
CSV
:: Table # to _ a -> [Array] (18325.0) -
配列の配列を返します。
配列の配列を返します。
一番目の要素はヘッダで、残りの要素はデータを表わします。
//emlist[例][ruby]{
require "csv"
row1 = CSV::Row.new(["header1", "header2"], ["row1_1", "row1_2"])
row2 = CSV::Row.new(["header1", "header2"], ["row2_1", "row2_2"])
table = CSV::Table.new([row1, row2])
table.to_a # => [["header1", "header2"], ["row1_1", "... -
DBM
# to _ a -> [Array] (18325.0) -
キーと値のペアを配列に変換して返します。
キーと値のペアを配列に変換して返します。
require 'dbm'
db1 = DBM.open('aaa.db', 0666, DBM::NEWDB)
db1[:a] = 'aaa'
db1[:b] = 'bbbbbb'
p db1.to_a #=> [["b", "bbbbbb"], ["a", "aaa"]] -
DBM
# to _ hash -> Hash (18325.0) -
self をハッシュに変換して返します。
self をハッシュに変換して返します。
require 'dbm'
db1 = DBM.open('aaa.db', 0666, DBM::NEWDB)
db1[:a] = 'aaa'
db1[:b] = 'bbbbbb'
p db1.to_hash #=> {"a"=>"aaa", "b"=>"bbbbbb"} -
Enumerable
# to _ h(*args) -> Hash (18325.0) -
self を [key, value] のペアの配列として解析した結果を Hash にして 返します。
self を [key, value] のペアの配列として解析した結果を Hash にして
返します。
@param args each の呼び出し時に引数として渡されます。
//emlist[例][ruby]{
%i[hello world].each_with_index.to_h # => {:hello => 0, :world => 1}
//} -
Fiddle
:: Pointer # to _ value -> object (18325.0) -
自身はヒープに確保された Ruby のオブジェクトを指すポインタであると仮定して、 自身が指すオブジェクトを返します。
自身はヒープに確保された Ruby のオブジェクトを指すポインタであると仮定して、
自身が指すオブジェクトを返します。
例:
require 'fiddle'
s = 'abc'
i = Fiddle.dlwrap(s)
cptr = Fiddle::Pointer.new(i)
p cptr.to_value #=> "abc" -
Float
# to _ f -> self (18325.0) -
self を返します。
self を返します。
//emlist[例][ruby]{
3.14.to_f # => 3.14
//} -
Float
# to _ r -> Rational (18325.0) -
自身を Rational に変換します。
自身を Rational に変換します。
//emlist[例][ruby]{
0.5.to_r # => (1/2)
//} -
Gem
:: Requirement # to _ s -> String (18325.0) -
条件を表す文字列を返します。
条件を表す文字列を返します。
//emlist[][ruby]{
req = Gem::Requirement.new(["< 5.0", ">= 1.9"])
p req.to_s # => "< 5.0, >= 1.9"
//} -
Gem
:: Version # to _ s -> String (18325.0) -
バージョン情報を文字列として返します。
バージョン情報を文字列として返します。
//emlist[][ruby]{
version = Gem::Version.new("1.2.3a")
p version.to_s # => "1.2.3a"
p version.version # => "1.2.3a"
//} -
Hash
# to _ a -> [Array] (18325.0) -
キーと値からなる 2 要素の配列を並べた配列を生成して返します。
キーと値からなる 2 要素の配列を並べた配列を生成して返します。
//emlist[例][ruby]{
h1 = { "a" => 100, 2 => ["some"], :c => "c" }
p h1.to_a #=> c, "c"
//}
@see Hash#keys,Hash#values -
IPAddr
# to _ i -> Integer (18325.0) -
整数に変換します。
整数に変換します。
例:
require "ipaddr"
p IPAddr.new("0.0.1.0").to_i # => 256 -
MatchData
# to _ a -> [String] (18325.0) -
$&, $1, $2,... を格納した配列を返します。
$&, $1, $2,... を格納した配列を返します。
//emlist[例][ruby]{
/(foo)(bar)(BAZ)?/ =~ "foobarbaz"
p $~.to_a # => ["foobar", "foo", "bar", nil]
//}
@see MatchData#captures -
MatchData
# to _ s -> String (18325.0) -
マッチした文字列全体を返します。
マッチした文字列全体を返します。
//emlist[例][ruby]{
/bar/ =~ "foobarbaz"
p $~ # => #<MatchData:0x401b1be4>
p $~.to_s # => "bar"
//} -
Matrix
# elements _ to _ f -> Matrix (18325.0) -
各要素を浮動小数点数 Float に変換した行列を返します。
各要素を浮動小数点数 Float に変換した行列を返します。
このメソッドは deprecated です。 map(&:to_f) を使ってください。 -
Matrix
# elements _ to _ i -> Matrix (18325.0) -
各要素を整数 Integer に変換した行列を返します。
各要素を整数 Integer に変換した行列を返します。
このメソッドは deprecated です。 map(&:to_i) を使ってください。 -
Matrix
# elements _ to _ r -> Matrix (18325.0) -
各要素を有理数 Rational に変換した行列を返します。
各要素を有理数 Rational に変換した行列を返します。
このメソッドは deprecated です。 map(&:to_r) を使ってください。 -
Matrix
# to _ a -> Array (18325.0) -
自分自身をArrayに変換したものを返します。
自分自身をArrayに変換したものを返します。
行ベクトルを配列(Array)としたものの配列(つまり配列の配列)として返します。
//emlist[例][ruby]{
require 'matrix'
a1 = [ 1, 2, 3]
a2 = [10, 15, 20]
a3 = [-1, -2, 1.5]
m = Matrix[a1, a2, a3]
p m.to_a # => [[1, 2, 3], [10, 15, 20], [-1, -2, 1.5]]
//} -
Matrix
# to _ s -> String (18325.0) -
行列を文字列化し、その文字列を返します。
行列を文字列化し、その文字列を返します。
//emlist[例][ruby]{
require 'matrix'
a1 = [1, 2]
a2 = [3, 4.5]
m = Matrix[a1, a2]
p m.to_s # => "Matrix[[1, 2], [3, 4.5]]"
//} -
Method
# to _ proc -> Proc (18325.0) -
self を call する Proc オブジェクトを生成して返します。
self を call する Proc オブジェクトを生成して返します。
//emlist[例][ruby]{
class Foo
def foo
"foo"
end
end
m = Foo.new.method(:foo) # => #<Method: Foo#foo>
pr = m.to_proc # => #<Proc:0x007f874d026008 (lambda)>
pr.call # => "foo"
//} -
NameError
# to _ s -> String (18325.0) -
例外オブジェクトを文字列に変換して返します。
例外オブジェクトを文字列に変換して返します。
例:
begin
foobar
rescue NameError => err
p err # => #<NameError: undefined local variable or method `foobar' for main:Object>
p err.to_s # => "undefined local variable or method `foobar' for main:Object"
end -
NilClass
# to _ a -> Array (18325.0) -
空配列 [] を返します。
空配列 [] を返します。
//emlist[例][ruby]{
nil.to_a #=> []
//} -
NilClass
# to _ c -> Complex (18325.0) -
0+0i を返します。
0+0i を返します。
//emlist[例][ruby]{
nil.to_c # => (0+0i)
//} -
NilClass
# to _ f -> Float (18325.0) -
0.0 を返します。
0.0 を返します。
//emlist[例][ruby]{
nil.to_f #=> 0.0
//} -
NilClass
# to _ h -> {} (18325.0) -
{} を返します。
{} を返します。
//emlist[例][ruby]{
nil.to_h #=> {}
//} -
NilClass
# to _ i -> Integer (18325.0) -
0 を返します。
0 を返します。
//emlist[例][ruby]{
nil.to_i #=> 0
//} -
NilClass
# to _ r -> Rational (18325.0) -
0/1 を返します。
0/1 を返します。
//emlist[例][ruby]{
nil.to_r # => (0/1)
//} -
NilClass
# to _ s -> String (18325.0) -
空文字列 "" を返します。
空文字列 "" を返します。
//emlist[例][ruby]{
nil.to_s # => ""
//} -
Object
# to _ hash -> Hash (18325.0) -
オブジェクトの Hash への暗黙の変換が必要なときに内部で呼ばれます。 デフォルトでは定義されていません。
オブジェクトの Hash への暗黙の変換が必要なときに内部で呼ばれます。
デフォルトでは定義されていません。
説明のためここに記載してありますが、
このメソッドは実際には Object クラスには定義されていません。
必要に応じてサブクラスで定義すべきものです。
このメソッドを定義する条件は、
* ハッシュが使われるすべての場面で代置可能であるような、
* ハッシュそのものとみなせるようなもの
という厳しいものになっています。
//emlist[][ruby]{
class Foo
def to_hash
{'as' => 24}
end
end
it = Foo... -
Object
# to _ int -> Integer (18325.0) -
オブジェクトの Integer への暗黙の変換が必要なときに内部で呼ばれます。 デフォルトでは定義されていません。
オブジェクトの Integer への暗黙の変換が必要なときに内部で呼ばれます。
デフォルトでは定義されていません。
説明のためここに記載してありますが、
このメソッドは実際には Object クラスには定義されていません。
必要に応じてサブクラスで定義すべきものです。
このメソッドを定義する条件は、
* 整数が使われるすべての場面で代置可能であるような、
* 整数そのものとみなせるようなもの
という厳しいものになっています。
//emlist[][ruby]{
class Foo
def to_int
1
end
end
ary = [:a, :b, :c]
p(... -
Object
# to _ proc -> Proc (18325.0) -
オブジェクトの Proc への暗黙の変換が必要なときに内部で呼ばれます。 デフォルトでは定義されていません。
オブジェクトの Proc への暗黙の変換が必要なときに内部で呼ばれます。
デフォルトでは定義されていません。
説明のためここに記載してありますが、
このメソッドは実際には Object クラスには定義されていません。
必要に応じてサブクラスで定義すべきものです。
//emlist[][ruby]{
def doing
yield
end
class Foo
def to_proc
Proc.new{p 'ok'}
end
end
it = Foo.new
doing(&it) #=> "ok"
//} -
Object
# to _ regexp -> Regexp (18325.0) -
オブジェクトの Regexp への暗黙の変換が必要なときに内部で呼ばれます。 デフォルトでは定義されていません。
オブジェクトの Regexp への暗黙の変換が必要なときに内部で呼ばれます。
デフォルトでは定義されていません。
説明のためここに記載してありますが、
このメソッドは実際には Object クラスには定義されていません。
必要に応じてサブクラスで定義すべきものです。
このメソッドを定義する条件は、
* 正規表現が使われるすべての場面で代置可能であるような、
* 正規表現そのものとみなせるようなもの
という厳しいものになっています。
//emlist[][ruby]{
class Foo
def to_regexp
/[\d]+/
end
end
it = Foo.... -
OpenSSL
:: PKey :: EC # to _ pem -> String (18325.0) -
鍵を PEM 形式の文字列に変換します。
鍵を PEM 形式の文字列に変換します。
現在の仕様では OpenSSL::PKey::RSA#to_pem のように
出力をパスフレーズで暗号化することはできません。
@raise OpenSSL::PKey::ECError 文字列への変換に失敗した場合に発生します。
公開鍵が含まれていない場合や、鍵が妥当でない場合などに失敗します。 -
OpenSSL
:: X509 :: Name # to _ a -> [[String , String , Integer]] (18325.0) -
内容を配列にして返します。
内容を配列にして返します。
配列の各要素は、[属性型文字列、属性値文字列、属性値の型を表す整数(OpenSSL::ASN1以下の各定数で定義されているASN1の型)] という3要素の配列です。
例:
require 'openssl'
n = OpenSSL::X509::Name.parse('/C=JP/ST=Kanagawa/L=Yokohama/O=Example Company/OU=Lab3/CN=foobar/emailAddress=foobar@lab3.example.co.jp')
n.to_a
# => [["C", "JP", 19], ["ST... -
OpenStruct
# to _ h -> { Symbol => object } (18325.0) -
self を各要素の名前をキー(Symbol)、要素が値のハッシュに変換して返 します。
self を各要素の名前をキー(Symbol)、要素が値のハッシュに変換して返
します。
//emlist[例][ruby]{
require 'ostruct'
data = OpenStruct.new("country" => "Australia", :capital => "Canberra")
data.to_h # => {:country => "Australia", :capital => "Canberra" }
//} -
OptionParser
# to _ a -> [String] (18325.0) -
サマリの各行を要素とした配列を返します。
サマリの各行を要素とした配列を返します。
//emlist[例][ruby]{
require "optparse"
opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end
opts.to_a # => ["Usage: test [options]", " -i, --init\n", " -u, --update\n", " -h, --help\n"]
//} -
Proc
# to _ proc -> self (18325.0) -
self を返します。
self を返します。
//emlist[例][ruby]{
pr = proc {}
p pr == pr.to_proc # => true
//} -
REXML
:: Attribute # to _ string -> String (18325.0) -
"name='value'" という形式の文字列を返します。
"name='value'" という形式の文字列を返します。
//emlist[][ruby]{
require 'rexml/document'
e = REXML::Element.new("el")
e.add_attribute("ns:r", "rval")
p e.attributes.get_attribute("r").to_string # => "ns:r='rval'"
//} -
REXML
:: Attributes # to _ a -> [Attribute] (18325.0) -
属性の配列を返します。
属性の配列を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new("<a x='1' y='2' z='3' />")
doc.root.attributes.to_a # => [x='1', y='2', z='3']
//} -
REXML
:: CData # to _ s -> String (18325.0) -
テキスト文字列を返します。
テキスト文字列を返します。
@see REXML::Text#value, REXML::Text#to_s
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root><![CDATA[foobar baz]]></root>
EOS
doc.root[0].class # => REXML::CData
doc.root[0].value # => "foobar baz"
//} -
REXML
:: Entity # to _ s -> String (18325.0) -
実体宣言を文字列化したものを返します。
実体宣言を文字列化したものを返します。
@see REXML::Entity#write
//emlist[][ruby]{
e = REXML::ENTITY.new("w", "wee");
p e.to_s # => "<!ENTITY w \"wee\">"
//} -
REXML
:: Text # to _ s -> String (18325.0) -
テキストの内容を正規化(すべての実体をエスケープ)された状態で返します。
テキストの内容を正規化(すべての実体をエスケープ)された状態で返します。
つまり返り値は XML のテキストとして妥当です。
結果は REXML::Text.new で指定した entity_filter を反映しています。
@see REXML::Text#value
//emlist[][ruby]{
require 'rexml/document'
t = REXML::Text.new("< & foobar", false, nil, false)
t.to_s # => "< & foobar"
t.value # => "< & foobar"
//} -
Rake
:: FileList # to _ s -> String (18325.0) -
全ての要素をスペースで連結した文字列を返します。
全ての要素をスペースで連結した文字列を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
file_list = FileList['a.c', 'b.c']
file_list.to_s # => "a.c b.c"
end
//} -
Rake
:: InvocationChain # to _ s -> String (18325.0) -
トップレベルのタスクから自身までの依存関係を文字列として返します。
トップレベルのタスクから自身までの依存関係を文字列として返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
invocation_chain= Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
invocation_chain.to_s # => "TOP => task_a"
end
//} -
Rake
:: TaskArguments # to _ hash -> Hash (18325.0) -
パラメータ名と対応する値を格納したハッシュを返します。
パラメータ名と対応する値を格納したハッシュを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
arguments = Rake::TaskArguments.new(["name1", "name2"], ["value1", "value2"])
arguments.to_hash # => {:name1=>"value1", :name2=>"value2"}
end
//} -
RubyVM
:: InstructionSequence # to _ a -> Array (18325.0) -
self の情報を 14 要素の配列にして返します。
...ンドの配列の配列。
//emlist[例][ruby]{
require 'pp'
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
pp iseq.to_a
# ※ Ruby 2.5.0 での実行結果
# => ["YARVInstructionSequence/SimpleDataFormat",
# 2,
# 0,
# 1,
# {:arg_size=>0, :local_size=>2, :stack_max=>2},
# "<compiled>"... -
SDBM
# to _ a -> [[String]] (18325.0) -
self の各要素を格納した配列を返します。
self の各要素を格納した配列を返します。
返される配列の1つの要素は [key, value] です。
つまり配列の配列を返します。
require 'sdbm'
db1 = SDBM.open('aaa.gdbm', 0666)
db1.clear
db1['a'] = 'aaa'
db1['b'] = 'bbb'
db1['c'] = 'ccc'
p db1.to_a #=> [["a", "aaa"], ["b", "bbb"], ["c", "ccc"]] -
SDBM
# to _ hash -> Hash (18325.0) -
self の各要素を格納したハッシュを返します。
self の各要素を格納したハッシュを返します。
require 'sdbm'
db1 = SDBM.open('aaa.gdbm', 0666)
db1.clear
db1['a'] = 'aaa'
db1['b'] = 'bbb'
db1['c'] = 'ccc'
p db1.to_hash #=> {"a"=>"aaa", "b"=>"bbb", "c"=>"ccc"} -
Set
# to _ a -> Array (18325.0) -
self を配列に変換します。要素の順序は不定です。
self を配列に変換します。要素の順序は不定です。
//emlist[][ruby]{
require 'set'
set = Set['hello', 'world']
p set.to_a # => ["hello", "world"]
//} -
Shell
:: Filter # to _ a -> [String] (18325.0) -
実行結果を文字列の配列で返します。
実行結果を文字列の配列で返します。
require 'shell'
Shell.def_system_command("wc")
sh = Shell.new
puts sh.cat("/etc/passwd").to_a -
Shell
:: Filter # to _ s -> String (18325.0) -
実行結果を文字列で返します。
実行結果を文字列で返します。
require 'shell'
Shell.def_system_command("wc")
sh = Shell.new
sh.transact {
puts (cat("/etc/passwd") | wc("-l")).to_s
} -
Struct
# to _ a -> [object] (18325.0) -
構造体のメンバの値を配列にいれて返します。
構造体のメンバの値を配列にいれて返します。
//emlist[例][ruby]{
Customer = Struct.new(:name, :address, :zip)
Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345).to_a
# => ["Joe Smith", "123 Maple, Anytown NC", 12345]
//}
[注意] 本メソッドの記述は Struct の下位クラスのインスタンスに対して呼び
出す事を想定しています。Struct.new は Struct の下位クラスを作成する点に
注意してくだ... -
Struct
# to _ h -> Hash (18325.0) -
self のメンバ名(Symbol)と値の組を Hash にして返します。
self のメンバ名(Symbol)と値の組を Hash にして返します。
//emlist[例][ruby]{
Customer = Struct.new(:name, :address, :zip)
Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345).to_h
# => {:name=>"Joe Smith", :address=>"123 Maple, Anytown NC", :zip=>12345}
//}
[注意] 本メソッドの記述は Struct の下位クラスのインスタンスに対して呼び
出す事を想定しています... -
Time
# to _ a -> Array (18325.0) -
時刻を10要素の配列で返します。
時刻を10要素の配列で返します。
その要素は順序も含めて以下の通りです。
* sec: 秒 (整数 0-60) (60はうるう秒)
* min: 分 (整数 0-59)
* hour: 時 (整数 0-23)
* mday: 日 (整数)
* mon: 月 (整数 1-12)
* year: 年 (整数 2000年=2000)
* wday: 曜日 (整数 0-6)
* yday: 年内通算日 (整数 1-366)
* isdst: 夏時間であるかどうか (true/false)
* zone: タイムゾーン (文字列)
... -
Time
# to _ r -> Rational (18325.0) -
起算時からの経過秒数を有理数で返します。1 秒に満たない経過も 表現されます。
起算時からの経過秒数を有理数で返します。1 秒に満たない経過も
表現されます。
//emlist[][ruby]{
t = Time.local(2000,1,2,3,4,5,6)
p t # => 2000-01-02 03:04:05 +0900
p t.to_r # => (473374922500003/500000)
//}