ライブラリ
- ビルトイン (459)
- benchmark (3)
- bigdecimal (20)
-
bigdecimal
/ util (7) -
cgi
/ core (2) -
cgi
/ html (4) -
cgi
/ session (6) -
cgi
/ session / pstore (2) - csv (16)
- date (11)
- dbm (4)
- delegate (16)
- digest (3)
- fiddle (5)
-
fiddle
/ import (2) - forwardable (8)
- gdbm (4)
- getoptlong (12)
- ipaddr (6)
-
irb
/ cmd / help (1) -
irb
/ context (2) -
irb
/ ext / history (2) -
irb
/ ext / save-history (5) -
irb
/ extend-command (1) -
irb
/ frame (2) -
irb
/ inspector (1) - 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 (2)
- logger (1)
- matrix (65)
- mkmf (5)
- monitor (6)
-
net
/ ftp (3) -
net
/ http (4) -
net
/ imap (8) -
net
/ pop (1) -
net
/ smtp (9) - openssl (75)
- optparse (13)
- ostruct (2)
- pathname (81)
- prime (27)
- pstore (12)
- psych (16)
-
racc
/ parser (2) - rake (18)
-
rdoc
/ context (3) -
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 (3)
- rexml (1)
-
rexml
/ document (32) -
rexml
/ parsers / pullparser (1) -
ripper
/ filter (2) - rss (23)
-
rubygems
/ commands / update _ command (1) -
rubygems
/ dependency _ installer (1) -
rubygems
/ dependency _ list (1) -
rubygems
/ indexer (1) -
rubygems
/ installer (1) -
rubygems
/ package / tar _ header (1) -
rubygems
/ package / tar _ reader / entry (1) -
rubygems
/ platform (2) -
rubygems
/ source _ index (1) -
rubygems
/ specification (3) -
rubygems
/ validator (5) -
rubygems
/ version (2) - scanf (3)
- sdbm (6)
- set (3)
- shell (8)
-
shell
/ command-processor (7) -
shell
/ filter (7) - socket (12)
- stringio (10)
- tsort (5)
- uri (9)
- weakref (2)
-
webrick
/ httpauth / authenticator (3) -
webrick
/ httpresponse (3) -
webrick
/ httputils (3) -
webrick
/ log (6) -
webrick
/ server (1) -
win32
/ registry (6) - win32ole (14)
-
yaml
/ dbm (3) - zlib (5)
クラス
-
ARGF
. class (27) - Addrinfo (6)
- Array (85)
- BasicObject (4)
- BasicSocket (1)
-
Benchmark
:: Tms (3) - BigDecimal (23)
- Bignum (3)
-
CGI
:: Cookie (1) -
CGI
:: Session :: FileStore (2) -
CGI
:: Session :: MemoryStore (2) -
CGI
:: Session :: NullStore (2) -
CGI
:: Session :: PStore (2) - CSV (5)
-
CSV
:: FieldInfo (1) -
CSV
:: Row (2) -
CSV
:: Table (7) - Complex (7)
- DBM (4)
- Date (10)
- DateTime (1)
- Delegator (14)
-
Digest
:: Base (3) - Dir (3)
- Encoding (2)
-
Encoding
:: Converter (4) - Enumerator (15)
-
Enumerator
:: Lazy (29) -
Enumerator
:: Yielder (2) - Exception (4)
- FalseClass (2)
-
Fiddle
:: Function (1) -
Fiddle
:: Handle (1) -
Fiddle
:: Pointer (3) - File (3)
-
File
:: Stat (3) - Fixnum (3)
- Float (12)
- GDBM (4)
-
Gem
:: Commands :: UpdateCommand (1) -
Gem
:: DependencyInstaller (1) -
Gem
:: DependencyList (1) -
Gem
:: Indexer (1) -
Gem
:: Installer (1) -
Gem
:: Package :: TarHeader (1) -
Gem
:: Package :: TarReader :: Entry (1) -
Gem
:: Platform (2) -
Gem
:: SourceIndex (1) -
Gem
:: Specification (3) -
Gem
:: Validator (5) -
Gem
:: Version (2) - GetoptLong (12)
- Hash (29)
- IO (18)
- IPAddr (6)
-
IRB
:: Context (7) -
IRB
:: ExtendCommand :: Help (1) -
IRB
:: Frame (2) -
IRB
:: Inspector (1) - Integer (12)
-
JSON
:: State (6) - Logger (1)
- MatchData (10)
- Matrix (30)
-
Matrix
:: EigenvalueDecomposition (7) -
Matrix
:: LUPDecomposition (3) - Module (12)
-
MonitorMixin
:: ConditionVariable (5) - NameError (1)
-
Net
:: FTP (3) -
Net
:: HTTPGenericRequest (2) -
Net
:: HTTPResponse (2) -
Net
:: IMAP (5) -
Net
:: IMAP :: Envelope (3) -
Net
:: POPMail (1) -
Net
:: SMTP (9) - NilClass (7)
- Numeric (8)
- Object (20)
-
OpenSSL
:: ASN1 :: ASN1Data (1) -
OpenSSL
:: BN (3) -
OpenSSL
:: HMAC (3) -
OpenSSL
:: Netscape :: SPKI (4) -
OpenSSL
:: OCSP :: BasicResponse (1) -
OpenSSL
:: OCSP :: Request (1) -
OpenSSL
:: PKCS7 (1) -
OpenSSL
:: PKey :: DSA (8) -
OpenSSL
:: PKey :: EC :: Group (3) -
OpenSSL
:: PKey :: RSA (8) -
OpenSSL
:: X509 :: Attribute (1) -
OpenSSL
:: X509 :: Certificate (4) -
OpenSSL
:: X509 :: Extension (2) -
OpenSSL
:: X509 :: ExtensionFactory (16) -
OpenSSL
:: X509 :: Name (3) -
OpenSSL
:: X509 :: Store (11) -
OpenSSL
:: X509 :: StoreContext (4) - OpenStruct (3)
- OptionParser (10)
-
OptionParser
:: ParseError (2) - PStore (12)
- Pathname (80)
- Prime (4)
-
Prime
:: EratosthenesGenerator (3) -
Prime
:: Generator23 (3) -
Prime
:: PseudoPrimeGenerator (13) -
Prime
:: TrialDivisionGenerator (3) - Proc (4)
-
Process
:: Status (7) -
Psych
:: Nodes :: Node (4) -
Psych
:: ScalarScanner (1) -
Psych
:: Visitors :: YAMLTree (9) -
RDoc
:: Context (3) -
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
:: Declaration (1) -
REXML
:: Element (7) -
REXML
:: Elements (6) -
REXML
:: ExternalEntity (1) -
REXML
:: NotationDecl (1) -
REXML
:: Parent (7) -
REXML
:: ParseException (1) -
REXML
:: Parsers :: PullParser (1) -
REXML
:: Text (2) -
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 (3)
-
Resolv
:: DNS :: Name (1) -
Resolv
:: IPv4 (1) -
Resolv
:: IPv6 (1) -
Ripper
:: Filter (2) -
RubyVM
:: InstructionSequence (1) - SDBM (6)
-
Scanf
:: FormatSpecifier (2) -
Scanf
:: FormatString (1) - Set (1)
- Shell (8)
-
Shell
:: CommandProcessor (7) -
Shell
:: Filter (7) - SimpleDelegator (2)
-
Socket
:: Option (2) - StopIteration (1)
- String (27)
- StringIO (10)
- Struct (7)
- Symbol (13)
- Thread (7)
-
Thread
:: Backtrace :: Location (3) - ThreadGroup (1)
- Time (7)
- TracePoint (2)
- TrueClass (1)
- UDPSocket (3)
-
URI
:: Generic (3) -
URI
:: MailTo (6) - UnboundMethod (1)
- UncaughtThrowError (1)
- Vector (25)
-
WEBrick
:: BasicLog (6) -
WEBrick
:: GenericServer (1) -
WEBrick
:: HTTPResponse (3) -
WEBrick
:: HTTPUtils :: FormData (3) - WIN32OLE (2)
-
WIN32OLE
_ EVENT (1) -
WIN32OLE
_ METHOD (3) -
WIN32OLE
_ PARAM (2) -
WIN32OLE
_ TYPE (2) -
WIN32OLE
_ TYPELIB (2) -
WIN32OLE
_ VARIABLE (2) - WeakRef (2)
-
Win32
:: Registry (6) -
YAML
:: DBM (3) -
Zlib
:: GzipReader (3) -
Zlib
:: ZStream (2)
モジュール
-
CGI
:: HtmlExtension (4) -
CGI
:: QueryExtension :: Value (2) - DublinCoreModel (3)
- Enumerable (44)
-
Fiddle
:: Importer (2) - 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 (6)
- MonitorMixin (1)
-
OpenSSL
:: Buffering (1) -
OptionParser
:: Arguable (1) -
RSS
:: TaxonomyTopicModel (2) -
RSS
:: TaxonomyTopicsModel (1) -
Rake
:: TaskManager (1) - SingleForwardable (4)
- TSort (5)
-
WEBrick
:: HTTPAuth :: Authenticator (3)
キーワード
- ! (1)
- != (1)
- % (2)
- & (2)
- * (5)
- + (2)
- - (2)
- << (7)
- <=> (1)
- == (3)
- >> (1)
- Pathname (1)
- [] (12)
- []= (8)
-
_ _ getobj _ _ (3) -
_ _ setobj _ _ (3) - 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)
-
buffer
_ initial _ length= (1) - bytes (5)
- call (1)
- capitalize (1)
- captures (1)
- casecmp (1)
- cat (3)
- ceil (3)
- chain (2)
- chardev? (1)
- chars (5)
-
check
_ signedness (2) - children (2)
- chmod (1)
- chown (1)
- chunk (3)
-
chunk
_ while (1) - chunked= (1)
- cleanup (1)
- clone (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)
- config (1)
- config= (1)
-
connect
_ to (2) -
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)
- ctime (2)
-
current
_ cert (1) - cycle (3)
- data (1)
- date (1)
- date= (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 (4)
-
delete
_ all (1) -
delete
_ at (1) -
delete
_ element (1) -
delete
_ if (6) -
delete
_ namespace (1) - denominator (5)
- depth= (1)
- descend (2)
- detect (1)
- directory? (4)
- dirname (1)
- dot (1)
- downcase (1)
- downto (3)
- drop (1)
-
drop
_ while (3) - dup (1)
- 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)
-
elements
_ to _ f (1) -
elements
_ to _ i (1) -
elements
_ to _ r (1) -
enable
_ starttls _ auto (1) - enclose (1)
- end (1)
- entries (1)
-
enum
_ for (4) - error (2)
- error? (1)
-
eval
_ history (1) -
eval
_ history= (1) - executable? (1)
-
executable
_ real? (1) - execute (1)
- exist? (1)
- export (4)
- 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 (1)
- 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
_ elements (1) - getopts (3)
- glob (3)
- grep (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)
- hostname= (1)
- hton (1)
- httopnly= (1)
- id2name (1)
-
in
_ reply _ to (1) -
in
_ transaction (1) - index (4)
- info (1)
-
init
_ save _ history (1) - initialize (2)
-
inner
_ product (1) - insert (1)
-
insert
_ output (1) - inspect (16)
-
inspect
_ value (1) -
install
_ alias _ method (1) -
instance
_ methods (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 (1)
- line (1)
- lines (9)
- list (1)
- load (1)
-
load
_ history (1) - logger (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! (2)
-
method
_ missing (2) - methods (1)
-
min
_ by (2) -
minmax
_ by (1) - minor (2)
- mkdir (1)
- mkpath (1)
- modulo (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)
-
num
_ values (1) - numerator (5)
-
ok
_ to _ remove? (1) -
ole
_ query _ interface (1) -
ole
_ respond _ to? (1) -
on
_ XXX (1) -
on
_ default (1) - open (2)
- opendir (2)
-
original
_ dir (1) - owned? (1)
- owner (1)
- pack (1)
- partition (1)
- path (4)
- pathmap (1)
- peek (1)
-
peek
_ values (1) - permutation (2)
- pipe? (1)
- pop (2)
- prepended (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 (2)
- protocol= (1)
-
psych
_ to _ yaml (1) -
public
_ instance _ methods (1) -
public
_ method (1) -
public
_ methods (1) - push (1)
- putback (2)
- 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) - 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 (1)
-
reverse
_ each (2) - rewind (5)
- rindex (1)
- rmdir (1)
- rmtree (1)
- root? (1)
- roots (1)
- rotate (1)
- rotate! (1)
- round (4)
- row (1)
-
row
_ vectors (1) - sample (4)
-
save
_ history (2) -
save
_ history= (1) - scan (6)
- select (5)
- select! (2)
- send (3)
-
send
_ mail (1) - sendmail (1)
- separator (1)
-
set
_ backtrace (1) -
set
_ default _ paths (1) -
set
_ error (1) -
set
_ generator (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) - size (3)
- size? (1)
- slice (1)
-
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)
- start (1)
- started (1)
- started? (1)
-
starttls
_ auto? (1) - stat (1)
- step (7)
- sticky? (1)
- stop? (1)
- stopped? (1)
- stopsig (1)
- storbinary (2)
- store (6)
- struct (1)
-
subject
_ certificate (1) -
subject
_ certificate= (1) -
subject
_ request (1) -
subject
_ request= (1) - subsec (1)
- succ (6)
- summarize (2)
- swapcase (1)
- symlink? (1)
- sysopen (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)
- times (1)
- to= (1)
-
to
_ a (33) -
to
_ ary (7) -
to
_ c (1) -
to
_ csv (2) -
to
_ d (6) -
to
_ date (2) -
to
_ datetime (2) -
to
_ der (7) -
to
_ digits (1) -
to
_ enum (4) -
to
_ f (10) -
to
_ h (7) -
to
_ hash (9) -
to
_ i (9) -
to
_ int (2) -
to
_ io (1) -
to
_ json (21) -
to
_ json _ raw (1) -
to
_ json _ raw _ object (1) -
to
_ mailtext (1) -
to
_ name (2) -
to
_ path (3) -
to
_ pem (6) -
to
_ r (8) -
to
_ range (1) -
to
_ re (1) -
to
_ rfc822text (1) -
to
_ ruby (1) -
to
_ s (69) -
to
_ set (2) -
to
_ sockaddr (1) -
to
_ string (2) -
to
_ text (4) -
to
_ time (1) -
to
_ value (1) -
to
_ write _ io (1) -
to
_ yaml (2) -
token
_ to _ str (1) - tokenize (1)
- tokens (1)
- tolocale (1)
- top (2)
-
top
_ level (1) -
top
_ level _ tasks (1) - total (1)
-
total
_ in (1) -
total
_ out (1) - transaction (1)
- transform (1)
- tree (1)
- truncate (5)
-
tsort
_ each (1) -
tsort
_ each _ child (1) -
tsort
_ each _ node (1) -
uid
_ sort (1) -
uid
_ store (1) -
ultra
_ safe (1) -
ultra
_ safe= (1) - uniq (2)
- uniq! (2)
-
unit
_ test (1) - unlink (1)
- unpack (2)
- unshift (1)
- upcase (1)
- update (7)
-
upper
_ bound (1) -
upper
_ bound= (1) - upto (5)
- userdb (1)
- utime (1)
- v (1)
-
v
_ inv (1) - value (2)
- value= (1)
- values (2)
-
values
_ at (2) - verify (5)
-
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 (3)
- yaml (1)
- yield (1)
- zero? (1)
- zip (6)
- | (1)
検索結果
先頭5件
-
URI
:: MailTo # to -> String (72325.0) -
自身の e-mail アドレスを文字列で返します。
自身の e-mail アドレスを文字列で返します。
例:
require 'uri'
p URI.parse("mailto:nospam@example.com").to #=> "nospam@example.com" -
JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw -> String (63739.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 -
Net
:: IMAP :: Envelope # to -> [Net :: IMAP :: Address] | nil (63655.0) -
To を Net::IMAP::Address オブジェクトの配列で返します。
To を Net::IMAP::Address オブジェクトの配列で返します。
エンベロープに存在しないときは nil を返します。 -
JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw _ object -> Hash (63643.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 :: Float # to _ json(state _ or _ hash = nil) -> String (63625.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 :: Object # to _ json(state _ or _ hash = nil) -> String (54709.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 (54679.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
自身のエンコードは UTF-8 であるべきです。
"\u????" のように UTF-16 ビッグエンディアンでエンコードされた文字列を返すことがあります。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]... -
URI
:: MailTo # to _ mailtext -> String (54664.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... -
JSON
:: Generator :: GeneratorMethods :: Array # to _ json(state _ or _ hash = nil) -> String (54625.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 (54625.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 :: Hash # to _ json(state _ or _ hash = nil) -> String (54625.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 (54625.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 (54625.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 (54625.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
"true" という文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
true.to_json # => "true"
//} -
IRB
:: HistorySavingAbility # save _ history -> () (54604.0) -
irb のヒストリを履歴ファイルに保存します。
irb のヒストリを履歴ファイルに保存します。
@see lib:irb#history -
RSS
:: TaxonomyTopicModel # taxo _ topic (54604.0) -
@todo
@todo -
RSS
:: TaxonomyTopicModel # taxo _ topic= (54604.0) -
@todo
@todo -
RSS
:: TaxonomyTopicsModel # taxo _ topics (54604.0) -
@todo
@todo -
RSS
:: TaxonomyTopicModel :: TaxonomyTopic # taxo _ link (54304.0) -
@todo
@todo -
RSS
:: TaxonomyTopicModel :: TaxonomyTopic # taxo _ link= (54304.0) -
@todo
@todo -
Pathname
# relative _ path _ from(base _ directory) -> Pathname (46204.0) -
base_directory から self への相対パスを求め、その内容の新しい Pathname オブジェクトを生成して返します。
base_directory から self への相対パスを求め、その内容の新しい Pathname
オブジェクトを生成して返します。
パス名の解決は文字列操作によって行われ、ファイルシステムをアクセス
しません。
self が相対パスなら base_directory も相対パス、self が絶対パスなら
base_directory も絶対パスでなければなりません。
@param base_directory ベースディレクトリを表す Pathname オブジェクトを指定します。
@raise ArgumentError Windows上でドライブが違うなど、base_direct... -
Date
# to _ date -> Date (45907.0) -
対応する Date オブジェクトを返します。
対応する Date オブジェクトを返します。 -
Date
# to _ datetime -> DateTime (45907.0) -
対応する DateTime オブジェクトを返します。
対応する DateTime オブジェクトを返します。 -
Matrix
:: EigenvalueDecomposition # eigenvector _ matrix -> Matrix (45904.0) -
右固有ベクトルを横に並べた行列を返します。
右固有ベクトルを横に並べた行列を返します。 -
Matrix
:: EigenvalueDecomposition # eigenvector _ matrix _ inv -> Matrix (45904.0) -
左固有ベクトルを縦に並べた行列を返します。
左固有ベクトルを縦に並べた行列を返します。
これは Matrix::EigenvalueDecomposition#v の逆行列です -
Array
# to _ ary -> self (45715.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 -
Hash
# to _ hash -> self (45679.0) -
self を返します。
self を返します。
//emlist[例][ruby]{
hash = {}
p hash.to_hash # => {}
p hash.to_hash == hash # => true
//}
@see Object#to_hash, Hash#to_h -
Pathname
# to _ path -> String (45673.0) -
File.open などの引数に渡す際に呼ばれるメソッドです。 Pathname オブジェ クトにおいては、 to_s と同じです。
File.open などの引数に渡す際に呼ばれるメソッドです。 Pathname オブジェ
クトにおいては、 to_s と同じです。
@see Pathname#to_s -
MatchData
# to _ a -> [String] (45646.0) -
$&, $1, $2,... を格納した配列を返します。
$&, $1, $2,... を格納した配列を返します。
//emlist[例][ruby]{
/(foo)(bar)(BAZ)?/ =~ "foobarbaz"
p $~.to_a # => ["foobar", "foo", "bar", nil]
//}
@see MatchData#captures -
Vector
# to _ a -> Array (45646.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]
//} -
Gem
:: Commands :: UpdateCommand # which _ to _ update(highest _ installed _ gems , gem _ names) -> Array (45607.0) -
更新が必要な Gem のリストを返します。
更新が必要な Gem のリストを返します。 -
Gem
:: DependencyInstaller # gems _ to _ install -> Array (45607.0) -
依存関係によりインストールされる予定の Gem のリストを返します。
依存関係によりインストールされる予定の Gem のリストを返します。 -
Racc
:: Parser # token _ to _ str(t) (45607.0) -
@todo
@todo -
Float
# denominator -> Integer (45604.0) -
自身を Rational に変換した時の分母を返します。
自身を Rational に変換した時の分母を返します。
@return 分母を返します。
//emlist[例][ruby]{
2.0.denominator # => 1
0.5.denominator # => 2
//}
@see Float#numerator -
Float
# numerator -> Integer (45604.0) -
自身を Rational に変換した時の分子を返します。
自身を Rational に変換した時の分子を返します。
@return 分子を返します。
//emlist[例][ruby]{
2.0.numerator # => 2
0.5.numerator # => 1
//}
@see Float#denominator -
IRB
:: HistorySavingAbility # load _ history -> () (45604.0) -
irb のヒストリを履歴ファイルから読み込みます。
irb のヒストリを履歴ファイルから読み込みます。
@see lib:irb#history -
OptionParser
# separator(sep) -> () (45604.0) -
サマリにオプションを区切るための文字列 sep を挿入します。 オプションにいくつかの種類がある場合に、サマリがわかりやすくなります。
サマリにオプションを区切るための文字列 sep を挿入します。
オプションにいくつかの種類がある場合に、サマリがわかりやすくなります。
サマリには on メソッドを呼んだ順にオプションが表示されるので、区切りを挿入したい
ところでこのメソッドを呼びます。
@param sep サマリの区切りを文字列で指定します。
//emlist[][ruby]{
require 'optparse'
opts = OptionParser.new
opts.banner = "Usage: example.rb [options]"
opts.separator ""
opts.separator... -
RSS
:: Rss :: Channel # managingEditor (45604.0) -
@todo
@todo -
RSS
:: Rss :: Channel # managingEditor= (45604.0) -
@todo
@todo -
Rational
# denominator -> Integer (45604.0) -
分母を返します。常に正の整数を返します。
分母を返します。常に正の整数を返します。
@return 分母を返します。
//emlist[例][ruby]{
Rational(7).denominator # => 1
Rational(7, 1).denominator # => 1
Rational(9, -4).denominator # => 4
Rational(-2, -10).denominator # => 5
//}
@see Rational#numerator -
Rational
# numerator -> Integer (45604.0) -
分子を返します。
分子を返します。
@return 分子を返します。
//emlist[例][ruby]{
Rational(7).numerator # => 7
Rational(7, 1).numerator # => 7
Rational(9, -4).numerator # => -9
Rational(-2, -10).numerator # => 1
//}
@see Rational#denominator -
URI
:: MailTo # to _ rfc822text -> String (45364.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... -
RSS
:: TaxonomyTopicModel :: TaxonomyTopic # about (45304.0) -
@todo
@todo -
RSS
:: TaxonomyTopicModel :: TaxonomyTopic # about= (45304.0) -
@todo
@todo -
RSS
:: TaxonomyTopicModel :: TaxonomyTopic # date (45304.0) -
@todo
@todo -
RSS
:: TaxonomyTopicModel :: TaxonomyTopic # date= (45304.0) -
@todo
@todo -
OpenSSL
:: PKey :: EC :: Group # set _ generator(generator , order , cofactor) -> self (37504.0) -
群のパラメータを設定します。
群のパラメータを設定します。
@param generator 生成元(OpenSSL::PKey::EC::Point オブジェクト)
@param order 生成元の位数(OpenSSL::BN オブジェクト)
@param cofactor 余因子OpenSSL::BN オブジェクト
@raise OpenSSL::PKey::EC::Group::Error 設定に失敗した場合に発生します -
RDoc
:: Options # generator -> Generator (37204.0) -
コマンドライン引数の --fmt オプションで指定した文字列に応じた Generator を返します。
コマンドライン引数の --fmt オプションで指定した文字列に応じた
Generator を返します。
指定しなかった場合は、HTML に対応する Generator を返します。 -
Rake
:: FileList # to _ ary -> Array (36985.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
//} -
Enumerator
:: Lazy # collect _ concat {|item| . . . } -> Enumerator :: Lazy (36976.0) -
ブロックの実行結果をひとつに繋げたものに対してイテレートするような Enumerator::Lazy のインスタンスを返します。
ブロックの実行結果をひとつに繋げたものに対してイテレートするような
Enumerator::Lazy のインスタンスを返します。
//emlist[][ruby]{
["foo", "bar"].lazy.flat_map {|i| i.each_char.lazy}.force
#=> ["f", "o", "o", "b", "a", "r"]
//}
ブロックの返した値 x は、以下の場合にのみ分解され、連結されます。
* x が配列であるか、to_ary メソッドを持つとき
* x が each および force メソッドを持つ (例:Enumerator::Lazy) ... -
Enumerator
:: Lazy # flat _ map {|item| . . . } -> Enumerator :: Lazy (36976.0) -
ブロックの実行結果をひとつに繋げたものに対してイテレートするような Enumerator::Lazy のインスタンスを返します。
ブロックの実行結果をひとつに繋げたものに対してイテレートするような
Enumerator::Lazy のインスタンスを返します。
//emlist[][ruby]{
["foo", "bar"].lazy.flat_map {|i| i.each_char.lazy}.force
#=> ["f", "o", "o", "b", "a", "r"]
//}
ブロックの返した値 x は、以下の場合にのみ分解され、連結されます。
* x が配列であるか、to_ary メソッドを持つとき
* x が each および force メソッドを持つ (例:Enumerator::Lazy) ... -
DBM
# to _ hash -> Hash (36961.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"} -
Object
# to _ ary -> Array (36961.0) -
オブジェクトの Array への暗黙の変換が必要なときに内部で呼ばれます。 デフォルトでは定義されていません。
オブジェクトの Array への暗黙の変換が必要なときに内部で呼ばれます。
デフォルトでは定義されていません。
説明のためここに記載してありますが、
このメソッドは実際には Object クラスには定義されていません。
必要に応じてサブクラスで定義すべきものです。
このメソッドを定義する条件は、
* 配列が使われるすべての場面で代置可能であるような、
* 配列そのものとみなせるようなもの
という厳しいものになっています。
//emlist[][ruby]{
class Foo
def to_ary
[3,4]
end
end
it = Foo.new
p([1,2... -
SDBM
# to _ hash -> Hash (36961.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"} -
Resolv
:: IPv6 # to _ name -> Resolv :: DNS :: Name (36955.0) -
"h.g.f.e.d.c.b.a.ip6.arpa." という DNS 名を返します。
"h.g.f.e.d.c.b.a.ip6.arpa." という DNS 名を返します。 -
IPAddr
# to _ range -> Range (36943.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:... -
JSON
:: State # to _ hash -> Hash (36928.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,
# ... -
CSV
:: Row # to _ hash -> Hash (36925.0) -
自身をシンプルなハッシュに変換します。
自身をシンプルなハッシュに変換します。
フィールドの順序は無視されます。
重複したフィールドは削除されます。
//emlist[例][ruby]{
require "csv"
row = CSV::Row.new(["header2", "header1", "header2"], [1, 2, 3])
row.to_hash # => {"header2"=>3, "header1"=>2}
//} -
Object
# to _ hash -> Hash (36925.0) -
オブジェクトの Hash への暗黙の変換が必要なときに内部で呼ばれます。 デフォルトでは定義されていません。
オブジェクトの Hash への暗黙の変換が必要なときに内部で呼ばれます。
デフォルトでは定義されていません。
説明のためここに記載してありますが、
このメソッドは実際には Object クラスには定義されていません。
必要に応じてサブクラスで定義すべきものです。
このメソッドを定義する条件は、
* ハッシュが使われるすべての場面で代置可能であるような、
* ハッシュそのものとみなせるようなもの
という厳しいものになっています。
//emlist[][ruby]{
class Foo
def to_hash
{'as' => 24}
end
end
it = Foo... -
Rake
:: TaskArguments # to _ hash -> Hash (36925.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
//} -
CGI
:: QueryExtension :: Value # to _ ary -> Array (36913.0) -
@todo
@todo -
GDBM
# to _ hash -> Hash (36907.0) -
self の各要素を格納したハッシュを返します。
self の各要素を格納したハッシュを返します。 -
Resolv
:: IPv4 # to _ name -> Resolv :: DNS :: Name (36907.0) -
"x.y.z.w.in-addr.arpa." という形のドメイン名を返します。
"x.y.z.w.in-addr.arpa." という形のドメイン名を返します。 -
Time
# to _ date -> Date (36907.0) -
対応する Date オブジェクトを返します。
対応する Date オブジェクトを返します。 -
Time
# to _ datetime -> DateTime (36907.0) -
対応する DateTime オブジェクトを返します。
対応する DateTime オブジェクトを返します。 -
YAML
:: DBM # to _ hash -> Hash (36907.0) -
自身のキー、値をハッシュにしたものを返します。
自身のキー、値をハッシュにしたものを返します。 -
Gem
:: Validator # alien -> [Gem :: Validator . ErrorData] (36904.0) -
Gem ディレクトリ内に存在するかもしれない以下のような問題を検証します。
Gem ディレクトリ内に存在するかもしれない以下のような問題を検証します。
* Gem パッケージのチェックサムが正しいこと
* それぞれの Gem に含まれるそれぞれのファイルがインストールされたバージョンであることの一貫性
* Gem ディレクトリに関係の無いファイルが存在しないこと
* キャッシュ、スペック、ディレクトリがそれぞれ一つずつ存在すること
このメソッドは検証に失敗しても例外を発生させません。 -
IRB
:: Context # eval _ history=(val) (36904.0) -
実行結果の履歴の最大保存件数を val に設定します。
実行結果の履歴の最大保存件数を val に設定します。
.irbrc ファイル中で IRB.conf[:EVAL_HISTORY] を設定する事でも同様の事が
行えます。
@param val 実行結果の履歴の最大保存件数を Integer か nil で指定し
ます。0 を指定した場合は無制限に履歴を保存します。現在の値よ
りも小さい値を指定した場合は履歴がその件数に縮小されます。
nil を指定した場合は履歴の追加がこれ以上行われなくなります。
@see IRB::Context#eval_history -
Object
# singleton _ class -> Class (36904.0) -
レシーバの特異クラスを返します。 まだ特異クラスがなければ、新しく作成します。
レシーバの特異クラスを返します。
まだ特異クラスがなければ、新しく作成します。
レシーバが nil か true か false なら、それぞれ NilClass, TrueClass,
FalseClass を返します。
@raise TypeError レシーバが Integer、Float、Symbol の場合に発生します。
//emlist[][ruby]{
Object.new.singleton_class #=> #<Class:#<Object:0xb7ce1e24>>
String.singleton_class #=> #<Class:String>
n... -
Array
# to _ a -> Array (36772.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... -
Object
# to _ a -> Array (36772.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 -
Matrix
# to _ a -> Array (36754.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]]
//} -
REXML
:: Elements # to _ a(xpath = nil) -> [REXML :: Element] (36718.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_... -
Rake
:: FileList # to _ a -> Array (36685.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
//} -
DBM
# to _ a -> [Array] (36682.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"]] -
Hash
# to _ a -> [Array] (36682.0) -
キーと値からなる 2 要素の配列を並べた配列を生成して返します。
キーと値からなる 2 要素の配列を並べた配列を生成して返します。
//emlist[例][ruby]{
h1 = { "a" => 100, 2 => ["some"], :c => "c" }
p h1.to_a #=> c, "c"
//}
@see Hash#keys,Hash#values -
Object
# psych _ to _ yaml(options = {}) -> String (36682.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 (36682.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 -
SDBM
# to _ a -> [[String]] (36682.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"]] -
REXML
:: Attributes # to _ a -> [Attribute] (36664.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']
//} -
OptionParser
:: Arguable # getopts(short _ opt , *long _ opt) -> Hash (36658.0) -
指定された short_opt や long_opt に応じて自身をパースし、結果を Hash として返します。
指定された short_opt や long_opt に応じて自身をパースし、結果を Hash として返します。
コマンドラインに - もしくは -- を指定した場合、それ以降の解析を行ないません。
@param short_opt ショートネームのオプション(-f や -fx)を文字列で指定します。オプションが -f と -x の
2つの場合は "fx" の様に指定します。ここでオプションがないときは空文字列を指定します。
オプションが引数をとる場合は直後に ":" を付けます。
@param long_opt ロン... -
CSV
:: Table # to _ a -> [Array] (36646.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", "... -
NilClass
# to _ a -> Array (36646.0) -
空配列 [] を返します。
空配列 [] を返します。
//emlist[例][ruby]{
nil.to_a #=> []
//} -
OpenSSL
:: X509 :: Name # to _ a -> [[String , String , Integer]] (36646.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... -
OptionParser
# to _ a -> [String] (36646.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"]
//} -
RubyVM
:: InstructionSequence # to _ a -> Array (36646.0) -
self の情報を 14 要素の配列にして返します。
self の情報を 14 要素の配列にして返します。
命令シーケンスを以下の情報で表します。
: magic
データフォーマットを示す文字列。常に
"YARVInstructionSequence/SimpleDataFormat"。
: major_version
命令シーケンスのメジャーバージョン。
: minor_version
命令シーケンスのマイナーバージョン。
: format_type
データフォーマットを示す数値。常に 1。
: misc
以下の要素から構成される Hash オブジェクト。
:arg_size: メソッド、ブ... -
Set
# to _ a -> Array (36646.0) -
self を配列に変換します。要素の順序は不定です。
self を配列に変換します。要素の順序は不定です。
//emlist[][ruby]{
require 'set'
set = Set['hello', 'world']
p set.to_a # => ["hello", "world"]
//} -
Shell
:: Filter # to _ a -> [String] (36646.0) -
実行結果を文字列の配列で返します。
実行結果を文字列の配列で返します。
require 'shell'
Shell.def_system_command("wc")
sh = Shell.new
puts sh.cat("/etc/passwd").to_a -
Struct
# to _ a -> [object] (36646.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 の下位クラスを作成する点に
注意してくだ... -
Time
# to _ a -> Array (36646.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: タイムゾーン (文字列)
... -
Exception
# set _ backtrace(errinfo) -> nil | String | [String] (36640.0) -
バックトレース情報に errinfo を設定し、設定されたバックトレース 情報を返します。
バックトレース情報に errinfo を設定し、設定されたバックトレース
情報を返します。
@param errinfo nil、String あるいは String の配列のいずれかを指定します。
//emlist[例][ruby]{
begin
begin
raise "inner"
rescue
raise "outer"
end
rescue
$!.backtrace # => ["/path/to/test.rb:5:in `rescue in <main>'", "/path/to/test.rb:2:in `<main>'"]
$!.se... -
Addrinfo
# to _ sockaddr -> String (36628.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" -
Fiddle
:: Pointer # to _ value -> object (36625.0) -
自身はヒープに確保された Ruby のオブジェクトを指すポインタであると仮定して、 自身が指すオブジェクトを返します。
自身はヒープに確保された Ruby のオブジェクトを指すポインタであると仮定して、
自身が指すオブジェクトを返します。
例:
require 'fiddle'
s = 'abc'
i = Fiddle.dlwrap(s)
cptr = Fiddle::Pointer.new(i)
p cptr.to_value #=> "abc" -
CGI
:: QueryExtension :: Value # to _ a -> Array (36613.0) -
@todo
@todo -
Matrix
:: EigenvalueDecomposition # to _ a -> [Matrix , Matrix , Matrix] (36613.0) -
Matrix::EigenvalueDecomposition#v, Matrix::EigenvalueDecomposition#d, Matrix::EigenvalueDecomposition#v_inv をこの順に並べた配列を返します。
Matrix::EigenvalueDecomposition#v,
Matrix::EigenvalueDecomposition#d,
Matrix::EigenvalueDecomposition#v_inv
をこの順に並べた配列を返します。 -
Matrix
:: EigenvalueDecomposition # to _ ary -> [Matrix , Matrix , Matrix] (36613.0) -
Matrix::EigenvalueDecomposition#v, Matrix::EigenvalueDecomposition#d, Matrix::EigenvalueDecomposition#v_inv をこの順に並べた配列を返します。
Matrix::EigenvalueDecomposition#v,
Matrix::EigenvalueDecomposition#d,
Matrix::EigenvalueDecomposition#v_inv
をこの順に並べた配列を返します。 -
Matrix
:: LUPDecomposition # to _ a -> [Matrix , Matrix , Matrix] (36613.0) -
分解した行列を [下半行列, 上半行列, 置換行列] という3要素の配列で 返します。
分解した行列を [下半行列, 上半行列, 置換行列] という3要素の配列で
返します。 -
Matrix
:: LUPDecomposition # to _ ary -> [Matrix , Matrix , Matrix] (36613.0) -
分解した行列を [下半行列, 上半行列, 置換行列] という3要素の配列で 返します。
分解した行列を [下半行列, 上半行列, 置換行列] という3要素の配列で
返します。 -
Benchmark
:: Tms # to _ a -> Array (36610.0) -
6 要素の配列を返します。
6 要素の配列を返します。
要素は以下の順番で配列に格納されています。
* ラベル
* user CPU time
* system CPU time,
* 子プロセスの user CPU time
* 子プロセスの system CPU time,
* 実経過時間 -
GDBM
# to _ a -> [[String]] (36610.0) -
self の各要素を格納した配列を返します。
self の各要素を格納した配列を返します。
返される配列の1つの要素は [key, value] です。
つまり配列の配列を返します。