ライブラリ
- ビルトイン (510)
- benchmark (3)
- bigdecimal (12)
-
bigdecimal
/ util (7) -
cgi
/ core (3) -
cgi
/ html (4) -
cgi
/ session (12) -
cgi
/ session / pstore (4) - csv (17)
- date (12)
- dbm (4)
- delegate (16)
- digest (3)
- drb (3)
-
drb
/ extserv (1) -
drb
/ timeridconv (2) - erb (3)
- fiddle (18)
-
fiddle
/ import (5) - forwardable (8)
- gdbm (4)
- getoptlong (12)
- ipaddr (5)
-
irb
/ cmd / help (1) -
irb
/ context (5) -
irb
/ ext / history (1) -
irb
/ ext / save-history (5) -
irb
/ frame (2) -
irb
/ inspector (2) - json (13)
-
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 (3)
- monitor (15)
-
net
/ ftp (7) -
net
/ http (5) -
net
/ imap (8) -
net
/ pop (1) -
net
/ smtp (9) - openssl (122)
- optparse (12)
- ostruct (5)
- pathname (81)
- prime (26)
- pstore (12)
- psych (15)
- rake (16)
-
rdoc
/ code _ object (1) -
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 (7) - resolv (6)
- rexml (1)
-
rexml
/ document (34) -
rexml
/ parsers / pullparser (1) -
ripper
/ filter (2) -
ripper
/ lexer (1) -
rubygems
/ commands / update _ command (1) -
rubygems
/ dependency _ installer (1) -
rubygems
/ dependency _ list (1) -
rubygems
/ indexer (2) -
rubygems
/ package / tar _ header (1) -
rubygems
/ package / tar _ reader / entry (1) -
rubygems
/ platform (2) -
rubygems
/ requirement (1) -
rubygems
/ source _ index (1) -
rubygems
/ specification (2) -
rubygems
/ validator (4) -
rubygems
/ version (2) - sdbm (6)
- set (3)
- shell (8)
-
shell
/ command-processor (7) -
shell
/ filter (12) - socket (13)
- stringio (11)
- tsort (5)
- un (2)
- uri (8)
- weakref (2)
-
webrick
/ httpauth / authenticator (3) -
webrick
/ httprequest (1) -
webrick
/ httpresponse (7) -
webrick
/ httputils (3) -
webrick
/ httpversion (1) -
webrick
/ log (1) -
webrick
/ server (2) - win32ole (15)
-
yaml
/ dbm (3) - zlib (9)
クラス
-
ARGF
. class (26) - Addrinfo (6)
- Array (78)
- BasicObject (4)
- BasicSocket (1)
-
Benchmark
:: Tms (3) - BigDecimal (15)
- Bignum (4)
-
CGI
:: Cookie (2) -
CGI
:: Session :: FileStore (4) -
CGI
:: Session :: MemoryStore (4) -
CGI
:: Session :: NullStore (4) -
CGI
:: Session :: PStore (4) - CSV (5)
-
CSV
:: FieldInfo (1) -
CSV
:: Row (3) -
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 (30) -
Enumerator
:: Yielder (2) - Exception (4)
- FalseClass (2)
-
Fiddle
:: CStruct (2) -
Fiddle
:: Closure (1) -
Fiddle
:: Function (2) -
Fiddle
:: Handle (1) -
Fiddle
:: Pointer (14) - File (3)
-
File
:: Stat (3) - Fixnum (3)
- Float (12)
- GDBM (4)
-
Gem
:: Commands :: UpdateCommand (1) -
Gem
:: DependencyInstaller (1) -
Gem
:: DependencyList (1) -
Gem
:: Indexer (2) -
Gem
:: Package :: TarHeader (1) -
Gem
:: Package :: TarReader :: Entry (1) -
Gem
:: Platform (2) -
Gem
:: Requirement (1) -
Gem
:: SourceIndex (1) -
Gem
:: Specification (2) -
Gem
:: Validator (4) -
Gem
:: Version (2) - GetoptLong (12)
- Hash (29)
- IO (23)
- IPAddr (5)
-
IRB
:: Context (9) -
IRB
:: ExtendCommand :: Help (1) -
IRB
:: Frame (2) -
IRB
:: Inspector (2) - Integer (16)
-
JSON
:: State (2) - Logger (1)
- MatchData (10)
- Matrix (30)
-
Matrix
:: EigenvalueDecomposition (7) -
Matrix
:: LUPDecomposition (3) - Method (3)
- Module (11)
- Monitor (3)
-
MonitorMixin
:: ConditionVariable (5) - NameError (1)
-
Net
:: FTP (5) -
Net
:: FTP :: MLSxEntry (2) -
Net
:: HTTP (1) -
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 (12) -
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 (1) -
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 (11) -
OpenSSL
:: X509 :: Name (3) -
OpenSSL
:: X509 :: Request (4) -
OpenSSL
:: X509 :: Store (11) -
OpenSSL
:: X509 :: StoreContext (8) - OpenStruct (6)
- OptionParser (9)
-
OptionParser
:: ParseError (2) - PStore (11)
-
PStore
:: DummyMutex (1) - Pathname (80)
- Prime (4)
-
Prime
:: EratosthenesGenerator (3) -
Prime
:: Generator23 (3) -
Prime
:: PseudoPrimeGenerator (12) -
Prime
:: TrialDivisionGenerator (3) - Proc (4)
-
Process
:: Status (7) -
Psych
:: Nodes :: Node (5) -
Psych
:: ScalarScanner (1) -
Psych
:: Visitors :: YAMLTree (7) -
RDoc
:: CodeObject (1) -
RDoc
:: Context (3) -
RDoc
:: Generator :: Darkfish (2) -
RDoc
:: Generator :: JsonIndex (1) -
RDoc
:: Generator :: RI (2) -
RDoc
:: Markup (3) -
RDoc
:: Markup :: Formatter (1) -
RDoc
:: Options (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
:: TopLevel (7) -
REXML
:: Attribute (2) -
REXML
:: Attributes (1) -
REXML
:: CData (2) -
REXML
:: Comment (2) -
REXML
:: Declaration (1) -
REXML
:: DocType (1) -
REXML
:: Element (5) -
REXML
:: Elements (6) -
REXML
:: Entity (2) -
REXML
:: ExternalEntity (1) -
REXML
:: NotationDecl (1) -
REXML
:: Parent (7) -
REXML
:: ParseException (1) -
REXML
:: Parsers :: PullParser (1) -
REXML
:: Text (2) -
Rake
:: Application (2) -
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)
- Set (1)
- Shell (8)
-
Shell
:: CommandProcessor (7) -
Shell
:: Filter (12) - SimpleDelegator (2)
-
Socket
:: Option (2) - StopIteration (1)
- String (42)
- StringIO (11)
- Struct (9)
- Symbol (24)
- Thread (6)
-
Thread
:: Backtrace :: Location (3) -
Thread
:: Queue (1) - ThreadGroup (1)
- Time (16)
- TracePoint (2)
- TrueClass (1)
- UDPSocket (3)
- UNIXSocket (1)
-
URI
:: Generic (3) -
URI
:: MailTo (5) - UnboundMethod (3)
- UncaughtThrowError (1)
- Vector (43)
-
WEBrick
:: BasicLog (1) -
WEBrick
:: Cookie (1) -
WEBrick
:: GenericServer (2) -
WEBrick
:: HTTPRequest (1) -
WEBrick
:: HTTPResponse (7) -
WEBrick
:: HTTPUtils :: FormData (3) -
WEBrick
:: HTTPVersion (1) - WIN32OLE (2)
-
WIN32OLE
_ EVENT (1) -
WIN32OLE
_ METHOD (3) -
WIN32OLE
_ PARAM (2) -
WIN32OLE
_ TYPE (3) -
WIN32OLE
_ TYPELIB (2) -
WIN32OLE
_ VARIABLE (2) - WeakRef (2)
-
YAML
:: DBM (3) -
Zlib
:: GzipFile (1) -
Zlib
:: GzipReader (3) -
Zlib
:: GzipWriter (3) -
Zlib
:: ZStream (2)
モジュール
-
CGI
:: HtmlExtension (4) -
CGI
:: QueryExtension (1) -
CGI
:: QueryExtension :: Value (2) - Enumerable (44)
-
Fiddle
:: Importer (3) - Forwardable (4)
-
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 (7)
- MonitorMixin (7)
-
OpenSSL
:: Buffering (1) -
OptionParser
:: Arguable (1) -
REXML
:: Node (1) - SingleForwardable (4)
- TSort (5)
-
WEBrick
:: HTTPAuth :: Authenticator (3)
キーワード
- ! (1)
- != (1)
- % (1)
- & (2)
- * (5)
- + (2)
- +@ (2)
- -@ (2)
-
/ (1) - << (7)
- <=> (2)
- == (5)
- === (1)
- =~ (1)
- > (1)
- >> (3)
- Pathname (1)
- [] (16)
- []= (4)
-
_ _ getobj _ _ (3) -
_ _ setobj _ _ (3) -
_ _ to _ s _ _ (1) - abort (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 (1) -
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) - autoclose= (1)
- autoclose? (1)
- autoload (1)
- autoload? (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) - bytes (5)
- call (1)
- capitalize (1)
- captures (1)
- casecmp (1)
- cat (3)
- ceil (2)
-
cert
_ store (2) - 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 (2)
- close (5)
- 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)
-
connect
_ to (2) -
content
_ length (1) -
content
_ length= (1) - 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) - crl (1)
- cross (1)
-
cross
_ product (1) - ctime (2)
-
current
_ cert (1) -
current
_ crl (1) - cycle (2)
- data (1)
-
def
_ delegator (2) -
def
_ delegators (2) -
def
_ instance _ delegator (1) -
def
_ instance _ delegators (1) -
def
_ single _ delegator (1) -
def
_ single _ delegators (1) -
define
_ singleton _ method (2) - delete (8)
-
delete
_ all (1) -
delete
_ at (1) -
delete
_ element (1) -
delete
_ if (6) -
delete
_ namespace (1) - denominator (5)
- descend (2)
-
dest
_ directory (1) - detect (1)
- directory (2)
- directory? (7)
-
directory
_ makable? (1) - dirname (1)
- dot (1)
- downto (4)
- drop (1)
-
drop
_ while (3) - dup (1)
- each (27)
- 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
_ 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) -
enable
_ starttls _ auto (1) - enclose (1)
- end (1)
- enter (1)
- entities (1)
- entries (1)
-
enum
_ for (4) - eql? (2)
- error (3)
- error? (1)
-
error
_ depth (1) -
error
_ string (2) -
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
_ relative _ name (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)
-
flat
_ map (2) - flatten (1)
- flatten! (1)
- flock (1)
- floor (2)
- fnmatch (1)
- fnmatch? (1)
- force (1)
- formatter (1)
- freeze (1)
- ftype (1)
-
full
_ name (1) -
gems
_ to _ install (1) - generate (3)
- generator (2)
- 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
_ converters (1) - headers (1)
- help (1)
- helpstring (1)
- hex (1)
- hexdigest (2)
-
history
_ file (1) - hton (1)
- httopnly (1)
-
http
_ version (1) - id2name (1)
-
in
_ reply _ to (1) -
in
_ transaction (1) - independent? (1)
- index (4)
- infinity? (1)
- init (1)
-
init
_ save _ history (1) - initialize (2)
-
inner
_ product (1) - insert (1)
-
insert
_ output (1) - inspect (24)
- inspect? (1)
-
inspect
_ value (1) -
instance
_ methods (1) - intern (2)
- io (1)
-
ipv6
_ to _ ipv4 (1) -
issuer
_ certificate (1) - join (1)
- kconv (1)
-
keep
_ if (2) - keys (1)
-
laplace
_ expansion (1) - last (4)
- lazy (2)
- lchmod (1)
- lchown (1)
- length (2)
- line (1)
- lines (9)
- list (1)
-
load
_ history (1) - logger (1)
- lshift! (1)
- lstat (1)
- lup (1)
-
lup
_ decomposition (1) - magnitude (1)
-
make
_ link (1) -
make
_ symlink (1) - map (6)
- map! (1)
- map2 (1)
-
marshal
_ dump (1) -
marshal
_ load (1) -
mask
_ bits! (1) - match (3)
-
max
_ by (4) - merge (2)
- merge! (2)
-
method
_ missing (2) - methods (1)
-
min
_ by (2) -
minmax
_ by (1) - minor (2)
- mkdir (1)
- mkmf (1)
- mkpath (1)
-
mon
_ enter (1) -
mon
_ exit (1) -
mon
_ synchronize (1) -
mon
_ try _ enter (1) - mtime (1)
- name (7)
-
new
_ cond (1) - next (6)
-
next
_ float (1) -
next
_ values (1) - norm (1)
- normalize (1)
- normalize! (1)
- nsec (1)
-
num
_ bytes (1) - numerator (5)
- oct (1)
-
ok
_ to _ remove? (1) -
ole
_ query _ interface (1) -
ole
_ respond _ to? (1) -
on
_ XXX (1) -
on
_ default (1) - open (2)
- opendir (2)
- ordering (1)
-
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 (1)
-
pretty
_ print (1) -
prev
_ float (1) - prime? (1)
-
prime
_ division (2) -
primitive
_ errinfo (1) - print (1)
-
private
_ instance _ methods (1) -
program
_ name (1) -
protected
_ instance _ methods (1) -
protected
_ methods (1) - protocol (2)
-
psych
_ to _ yaml (1) - ptr (1)
-
public
_ instance _ methods (1) -
public
_ method (1) -
public
_ methods (1) - putback (2)
- putc (1)
- quiet (1)
- quiet? (1)
- r (1)
- rand (3)
- rationalize (2)
- rcptto (1)
-
rcptto
_ list (1) - read (1)
-
read
_ body (2) - readable? (1)
-
readable
_ real? (1) - readlines (3)
- readlink (1)
- ready (1)
- realm (1)
-
record
_ separator (1) - ref (1)
- reject (8)
- reject! (3)
-
relative
_ path _ from (1) -
remove
_ leading _ dot _ dir (1) - rename (5)
-
repeated
_ combination (2) -
repeated
_ permutation (2) - replace (3)
-
replace
_ child (1) -
reply
_ to (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 (2)
-
route
_ to (1) - row (1)
-
row
_ vectors (1) - rshift! (1)
- run (1)
- sample (2)
-
save
_ history (2) - 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
_ request (1) - subsec (1)
- succ (5)
- summarize (2)
- symlink? (1)
- synchronize (2)
- sysopen (1)
- syswrite (1)
- take (1)
-
take
_ while (4) - tap (1)
- tee (3)
- terminate (1)
- terminated? (1)
- 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 (10) -
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
_ regexp (1) -
to
_ rfc822text (1) -
to
_ ruby (2) -
to
_ s (100) -
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
_ yaml (2) - toeuc (1)
- tojis (1)
- tokenize (2)
- tokens (1)
- tolocale (1)
- top (2)
-
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)
- tree (1)
- truncate (5)
-
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) - uniq (1)
- uniq! (1)
- unlink (1)
- unpack (1)
- unshift (1)
- update (7)
-
upper
_ bound (1) - upto (5)
- usec (1)
- userdb (1)
- utime (1)
- v (1)
-
v
_ inv (1) - value (2)
- values (2)
-
values
_ at (2) - verify (6)
-
verify
_ callback (1) -
verify
_ gem (1) -
verify
_ gem _ file (1) - version (1)
- wait (1)
-
wait
_ until (1) -
wait
_ while (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)
- yaml (1)
- yield (1)
- zero? (1)
- zip (6)
- | (2)
検索結果
先頭5件
- URI
:: MailTo # to -> String - JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw -> String - JSON
:: Generator :: GeneratorMethods :: String # to _ json(state _ or _ hash = nil) -> String - JSON
:: Generator :: GeneratorMethods :: Object # to _ json(state _ or _ hash = nil) -> String - JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw _ object -> Hash
-
URI
:: MailTo # to -> String (90973.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 (73039.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 :: String # to _ json(state _ or _ hash = nil) -> String (73015.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
自身のエンコードは UTF-8 であるべきです。
"\u????" のように UTF-16 ビッグエンディアンでエンコードされた文字列を返すことがあります。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]... -
JSON
:: Generator :: GeneratorMethods :: Object # to _ json(state _ or _ hash = nil) -> String (73009.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 _ raw _ object -> Hash (72997.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::... -
Net
:: IMAP :: Envelope # to -> [Net :: IMAP :: Address] | nil (72955.0) -
To を Net::IMAP::Address オブジェクトの配列で返します。
To を Net::IMAP::Address オブジェクトの配列で返します。
エンベロープに存在しないときは nil を返します。 -
JSON
:: Generator :: GeneratorMethods :: Array # to _ json(state _ or _ hash = nil) -> String (72925.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 (72925.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 (72925.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 (72925.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 (72925.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 (72925.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 (72925.0) -
自身から生成した JSON 形式の文字列を返します。
自身から生成した JSON 形式の文字列を返します。
"true" という文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
true.to_json # => "true"
//} -
Vector
# -(v) -> Vector | Matrix (72904.0) -
self からベクトル v を減じたベクトルを返します。
self からベクトル v を減じたベクトルを返します。
v には column_size が 1 の Matrix オブジェクトも指定できます。
その場合は返り値も Matrix オブジェクトになります。
@param v 減算するベクトル。減算可能な行列やベクトルを指定します。
@raise ExceptionForMatrix::ErrDimensionMismatch 自分自身と引数のベクト
ルの要素の数(次元)が異なっていたときに発生します。 -
Vector
# elements _ to _ f -> Vector (55243.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 (55243.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 (55243.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)]
//} -
OpenSSL
:: X509 :: ExtensionFactory # create _ extension(obj) -> OpenSSL :: X509 :: Extension (55204.0) -
OpenSSL::X509::Extension のインスタンスを生成して返します。
OpenSSL::X509::Extension のインスタンスを生成して返します。
引数の個数が1個である場合、それが配列、ハッシュ、文字列のいずれかである
ならば、
OpenSSL::X509::ExtensionFactory#create_ext_from_array、
OpenSSL::X509::ExtensionFactory#create_ext_from_hash、
OpenSSL::X509::ExtensionFactory#create_ext_from_string、
がそれぞれ呼びだされてオブジェクトを生成します。
引数が2個以上である場合は、
OpenSSL:... -
OpenSSL
:: X509 :: ExtensionFactory # create _ extension(oid , value , critical=false) -> OpenSSL :: X509 :: Extension (55204.0) -
OpenSSL::X509::Extension のインスタンスを生成して返します。
OpenSSL::X509::Extension のインスタンスを生成して返します。
引数の個数が1個である場合、それが配列、ハッシュ、文字列のいずれかである
ならば、
OpenSSL::X509::ExtensionFactory#create_ext_from_array、
OpenSSL::X509::ExtensionFactory#create_ext_from_hash、
OpenSSL::X509::ExtensionFactory#create_ext_from_string、
がそれぞれ呼びだされてオブジェクトを生成します。
引数が2個以上である場合は、
OpenSSL:... -
URI
:: MailTo # to _ mailtext -> String (55054.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 (55054.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 (54925.0) -
Delegator#__getobj__ が返すオブジェクトが メソッド m を持つとき真を返します。
Delegator#__getobj__ が返すオブジェクトが メソッド m を持つとき真を返します。
@param m メソッド名
@see Object#respond_to? -
Vector
# to _ a -> Array (54925.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 (54925.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 (54907.0) -
@param m メソッド名を指定します。
@param m メソッド名を指定します。
@param include_private 真を指定すると private メソッドも調べます。 -
CGI
:: Session :: FileStore # restore -> Hash (54904.0) -
セッションの状態をファイルから復元したハッシュを返します。
セッションの状態をファイルから復元したハッシュを返します。 -
CGI
:: Session :: MemoryStore # restore -> Hash (54904.0) -
セッションの状態を復元したハッシュを返します。
セッションの状態を復元したハッシュを返します。 -
CGI
:: Session :: NullStore # restore -> Hash (54904.0) -
セッションの状態を復元したハッシュを返します。 このクラスでは何もしません。
セッションの状態を復元したハッシュを返します。
このクラスでは何もしません。 -
CGI
:: Session :: PStore # restore -> Hash (54904.0) -
セッションの状態をファイルから復元したハッシュを返します。
セッションの状態をファイルから復元したハッシュを返します。 -
Delegator
# _ _ getobj _ _ -> object (54904.0) -
委譲先のオブジェクトを返します。
委譲先のオブジェクトを返します。
本メソッドは、サブクラスで再定義する必要があり、
デフォルトでは NotImplementedError が発生します。
@raise NotImplementedError サブクラスにて本メソッドが再定義されていない場合に発生します。 -
Delegator
# _ _ setobj _ _ (obj) -> object (54904.0) -
委譲先のオブジェクトをセットします。
委譲先のオブジェクトをセットします。
@param obj 委譲先のオブジェクトを指定します。
@raise NotImplementedError サブクラスにて本メソッドが再定義されていない場合に発生します。 -
IRB
:: HistorySavingAbility # load _ history -> () (54904.0) -
irb のヒストリを履歴ファイルから読み込みます。
irb のヒストリを履歴ファイルから読み込みます。
@see lib:irb#history -
IRB
:: HistorySavingAbility # save _ history -> () (54904.0) -
irb のヒストリを履歴ファイルに保存します。
irb のヒストリを履歴ファイルに保存します。
@see lib:irb#history -
SimpleDelegator
# _ _ getobj _ _ -> object (54904.0) -
委譲先のオブジェクトを返します。
委譲先のオブジェクトを返します。
@see Delegator#__getobj__ -
SimpleDelegator
# _ _ setobj _ _ (obj) -> object (54904.0) -
委譲先のオブジェクトを obj に変更します。
委譲先のオブジェクトを obj に変更します。
メソッド委譲を行うためのクラスメソッドの再定義は行われないことに注意してください。
メソッド委譲を行うためのクラスメソッドの定義は生成時にのみ行われます。
そのため、以前の委譲先オブジェクトと
obj の間で呼び出せるメソッドに違いがあった場合は、
何かしらの例外が発生する可能性があります。
@param obj 委譲先のオブジェクト
@return 変更後の委譲先オブジェクト -
Vector
# covector -> Matrix (54904.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]]
//} -
URI
:: MailTo # to=(s) (54691.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... -
Array
# -(other) -> Array (54658.0) -
自身から other の要素を取り除いた配列を生成して返します。
自身から other の要素を取り除いた配列を生成して返します。
要素の同一性は Object#eql? により評価されます。
self 中で重複していて、other中に存在していなかった要素は、その重複が保持されます。
@param other 自身から取り除きたい要素の配列を指定します。
配列以外のオブジェクトを指定した場合は to_ary メソッドによ
る暗黙の型変換を試みます。
@raise TypeError 引数に配列以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します... -
Pathname
# to _ path -> String (45973.0) -
File.open などの引数に渡す際に呼ばれるメソッドです。 Pathname オブジェ クトにおいては、 to_s と同じです。
File.open などの引数に渡す際に呼ばれるメソッドです。 Pathname オブジェ
クトにおいては、 to_s と同じです。
@see Pathname#to_s -
Date
# to _ date -> Date (45907.0) -
対応する Date オブジェクトを返します。
対応する Date オブジェクトを返します。 -
Date
# to _ datetime -> DateTime (45907.0) -
対応する DateTime オブジェクトを返します。
対応する DateTime オブジェクトを返します。 -
Fiddle
:: CStruct # to _ ptr -> Fiddle :: Pointer (45907.0) -
保持している構造体へのポインタを返します。
保持している構造体へのポインタを返します。 -
Gem
:: Commands :: UpdateCommand # which _ to _ update(highest _ installed _ gems , gem _ names) -> Array (45907.0) -
更新が必要な Gem のリストを返します。
更新が必要な Gem のリストを返します。 -
Gem
:: DependencyInstaller # gems _ to _ install -> Array (45907.0) -
依存関係によりインストールされる予定の Gem のリストを返します。
依存関係によりインストールされる予定の Gem のリストを返します。 -
Rake
:: InvocationChain :: EmptyInvocationChain # to _ s -> String (45907.0) -
'TOP' という文字列を返します。
'TOP' という文字列を返します。 -
Time
# to _ datetime -> DateTime (45907.0) -
対応する DateTime オブジェクトを返します。
対応する DateTime オブジェクトを返します。 -
Time
# to _ time -> Time (45907.0) -
対応する Time オブジェクトを返します。
対応する Time オブジェクトを返します。 -
Matrix
:: EigenvalueDecomposition # eigenvector _ matrix -> Matrix (45904.0) -
右固有ベクトルを横に並べた行列を返します。
右固有ベクトルを横に並べた行列を返します。 -
Matrix
:: EigenvalueDecomposition # eigenvector _ matrix _ inv -> Matrix (45904.0) -
左固有ベクトルを縦に並べた行列を返します。
左固有ベクトルを縦に並べた行列を返します。
これは Matrix::EigenvalueDecomposition#v の逆行列です -
Prime
:: EratosthenesGenerator # next -> Integer (45604.0) -
次の(擬似)素数を返します。なお、この実装においては擬似素数は真に素数です。
次の(擬似)素数を返します。なお、この実装においては擬似素数は真に素数です。
また内部的な列挙位置を進めます。
//emlist[例][ruby]{
require 'prime'
generator = Prime::EratosthenesGenerator.new
p generator.next #=> 2
p generator.next #=> 3
p generator.succ #=> 5
p generator.succ #=> 7
p generator.next #=> 11
//} -
Enumerator
:: Lazy # to _ enum(method = :each , *args) -> Enumerator :: Lazy (37630.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 (37630.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) ... -
Matrix
# column _ vectors -> [Vector] (37558.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]]
//} -
Date
# downto(min) -> Enumerator (37552.0) -
このメソッドは、step(min, -1){|date| ...} と等価です。
このメソッドは、step(min, -1){|date| ...} と等価です。
@param min 日付オブジェクト
@see Date#step, Date#upto -
Matrix
# row _ vectors -> [Vector] (37540.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]]
//} -
Object
# singleton _ methods(inherited _ too = true) -> [Symbol] (37522.0) -
そのオブジェクトに対して定義されている特異メソッド名 (public あるいは protected メソッド) の一覧を返します。
そのオブジェクトに対して定義されている特異メソッド名
(public あるいは protected メソッド) の一覧を返します。
inherited_too が真のときは継承した特異メソッドを含みます。
継承した特異メソッドとは Object#extend によって追加された特異メソッドや、
self がクラスの場合はスーパークラスのクラスメソッド(Classのインスタンスの特異メソッド)などです。
singleton_methods(false) は、Object#methods(false) と同じです。
@param inherited_too 継承した特異メソッドを含める場合は... -
Date
# upto(max) -> Enumerator (37504.0) -
このメソッドは、step(max, 1){|date| ...} と等価です。
このメソッドは、step(max, 1){|date| ...} と等価です。
@param max 日付オブジェクト
@see Date#step, Date#downto -
Integer
# downto(min) -> Enumerator (37504.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 (37504.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
:: EigenvalueDecomposition # eigenvectors -> [Vector] (37504.0) -
右固有ベクトルを配列で返します。
右固有ベクトルを配列で返します。 -
Module
# protected _ instance _ methods(inherited _ too = true) -> [Symbol] (37504.0) -
そのモジュールで定義されている protected メソッド名 の一覧を配列で返します。
そのモジュールで定義されている protected メソッド名
の一覧を配列で返します。
@param inherited_too false を指定するとそのモジュールで定義されているメソッドのみ返します。
@see Object#protected_methods, Module#instance_methods -
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
:: Context # toplevel -> RDoc :: TopLevel (37504.0) -
自身が所属する RDoc::TopLevel オブジェクトを返します。
自身が所属する RDoc::TopLevel オブジェクトを返します。 -
RDoc
:: Options # generator -> Generator (37504.0) -
コマンドライン引数の --fmt オプションで指定した文字列に応じた Generator を返します。
コマンドライン引数の --fmt オプションで指定した文字列に応じた
Generator を返します。
指定しなかった場合は、HTML に対応する Generator を返します。 -
OpenSSL
:: BN # to _ s(base=10) -> String (37429.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.... -
String
# to _ c -> Complex (37357.0) -
自身を複素数 (Complex) に変換した結果を返します。
自身を複素数 (Complex) に変換した結果を返します。
以下の形式を解析できます。i、j は大文字、小文字のどちらでも解析できます。
* 実部+虚部i
* 実部+虚部j
* 絶対値@偏角
それぞれの数値は以下のいずれかの形式で指定します。先頭の空白文字や複素
数値の後にある文字列は無視されます。また、数値オブジェクトと同様に各桁
の間に「_」を入れる事ができます。
* "1/3" のような分数の形式
* "0.3" のような10進数の形式
* "0.3E0" のような x.xEn の形式
自身が解析できない値であった場合は 0+0i を返します。
//emlis... -
String
# to _ i(base = 10) -> Integer (37303.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 _ list(to _ addrs) { . . . } -> object (37273.0) -
RCPTTO コマンドを to_addrs のすべてのメールアドレスに対して送ります。
RCPTTO コマンドを to_addrs のすべてのメールアドレスに対して送ります。
コマンドを送った後、ブロックを呼び出します。
このメソッドの返り値はブロックの返り値になります。
通常は Net::SMTP#send_message, Net::SMTP#open_message_stream で
RCPTTO が送られるため利用する必要はないはずです。
@param to_addrs 送信先メールアドレスの配列 -
Net
:: SMTP # rcptto(to _ addr) -> Net :: SMTP :: Response (37225.0) -
RCPTTO コマンドを送ります。
RCPTTO コマンドを送ります。
通常は Net::SMTP#send_message, Net::SMTP#open_message_stream で
RCPTTO が送られるため利用する必要はないはずです。
@param to_addr 送信先メールアドレス -
String
# to _ f -> Float (37213.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 ... -
CGI
:: HtmlExtension # image _ button(attributes) -> String (37204.0) -
タイプが image の input 要素を生成します。
タイプが image の input 要素を生成します。
@param attributes 属性をハッシュで指定します。
例:
image_button({ "SRC" => "url", "ALT" => "string" })
# <INPUT TYPE="image" SRC="url" ALT="string"> -
CGI
:: HtmlExtension # radio _ button(attributes) -> String (37204.0) -
タイプが radio である input 要素を生成します。
タイプが radio である input 要素を生成します。
@param attributes 属性をハッシュで指定します。
例:
radio_button({ "NAME" => "name", "VALUE" => "value", "ID" => "foo" })
# <INPUT TYPE="radio" NAME="name" VALUE="value" ID="foo"> -
Enumerable
# partition -> Enumerator (37204.0) -
各要素を、ブロックの条件を満たす要素と満たさない要素に分割します。 各要素に対してブロックを評価して、その値が真であった要素の配列と、 偽であった要素の配列の 2 つを配列に入れて返します。
各要素を、ブロックの条件を満たす要素と満たさない要素に分割します。
各要素に対してブロックを評価して、その値が真であった要素の配列と、
偽であった要素の配列の 2 つを配列に入れて返します。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
[10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0].partition {|i| i % 3 == 0 }
#=> [[9, 6, 3, 0], [10, 8, 7, 5, 4, 2, 1]]
//} -
Net
:: HTTP # cert _ store -> OpenSSL :: X509 :: Store | nil (37204.0) -
接続相手の証明書の検証のために使う、信頼している CA 証明書を 含む証明書ストアを返します。
接続相手の証明書の検証のために使う、信頼している CA 証明書を
含む証明書ストアを返します。
@see Net::HTTP#cert_store, OpenSSL::SSL::SSLContext#cert_store= -
OpenSSL
:: SSL :: SSLContext # cert _ store -> OpenSSL :: X509 :: Store | nil (37204.0) -
接続相手の証明書の検証のために使う、信頼している CA 証明書を 含む証明書ストアを返します。
接続相手の証明書の検証のために使う、信頼している CA 証明書を
含む証明書ストアを返します。
デフォルトは nil です。
@see OpenSSL::SSL::SSLContext#cert_store= -
Time
# to _ s -> String (37177.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 #... -
Time
# to _ a -> Array (37123.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: タイムゾーン (文字列)
... -
Rational
# to _ f -> Float (37105.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... -
String
# to _ r -> Rational (37105.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 (37090.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 (37090.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 (37087.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 _ i -> Integer (37087.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 を指定した場合は指定した桁数で切り... -
Time
# to _ i -> Integer (37069.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
//} -
Net
:: IMAP :: Envelope # in _ reply _ to -> String | nil (37051.0) -
In-reply-to の内容を文字列で返します。
In-reply-to の内容を文字列で返します。
エンベロープに存在しないときは nil を返します。 -
Time
# to _ f -> Float (37051.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
//} -
OptionParser
:: Arguable # getopts(short _ opt , *long _ opt) -> Hash (37048.0) -
指定された short_opt や long_opt に応じて自身をパースし、結果を Hash として返します。
指定された short_opt や long_opt に応じて自身をパースし、結果を Hash として返します。
コマンドラインに - もしくは -- を指定した場合、それ以降の解析を行ないません。
@param short_opt ショートネームのオプション(-f や -fx)を文字列で指定します。オプションが -f と -x の
2つの場合は "fx" の様に指定します。ここでオプションがないときは空文字列を指定します。
オプションが引数をとる場合は直後に ":" を付けます。
@param long_opt ロン... -
Array
# to _ csv(**options) -> String (37015.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',... -
Exception
# to _ json(*args) -> String (37015.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... -
Integer
# to _ f -> Float (37015.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
//} -
Object
# respond _ to?(name , include _ all = false) -> bool (37015.0) -
オブジェクトがメソッド name を持つとき真を返します。
オブジェクトがメソッド name を持つとき真を返します。
オブジェクトが メソッド name を持つというのは、
オブジェクトが メソッド name に応答できることをいいます。
Windows での Process.fork や GNU/Linux での File.lchmod の
ような NotImplementedError が発生する場合は false を返します。
※ NotImplementedError が発生する場合に false を返すのは
Rubyの組み込みライブラリや標準ライブラリなど、C言語で実装されているメソッドのみです。
Rubyで実装されたメソッドで N... -
Regexp
# to _ s -> String (37015.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... -
Time
# to _ r -> Rational (37015.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)
//} -
Net
:: IMAP :: Envelope # reply _ to -> [Net :: IMAP :: Address] | nil (37003.0) -
Reply-To を Net::IMAP::Address オブジェクトの配列で返します。
Reply-To を Net::IMAP::Address オブジェクトの配列で返します。
エンベロープに存在しないときは nil を返します。 -
Process
:: Status # to _ s -> String (37003.0) -
to_i.to_s と同じです。
to_i.to_s と同じです。 -
Float
# to _ d -> BigDecimal (37000.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 (37000.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 (37000.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 (37000.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
# tojis -> String (37000.0) -
self のエンコーディングを iso-2022-jp に変換した文字列を 返します。変換元のエンコーディングは文字列の内容から推測します。
self のエンコーディングを iso-2022-jp に変換した文字列を
返します。変換元のエンコーディングは文字列の内容から推測します。
このメソッドは MIME エンコードされた文字列を展開し、
いわゆる半角カナを全角に変換します。
これらを変換したくない場合は、 NKF.#nkf('-jxm0', str)
を使ってください。
@see Kconv.#tojis