種類
ライブラリ
- ビルトイン (302)
- benchmark (8)
- bigdecimal (9)
-
cgi
/ core (7) -
cgi
/ html (8) -
cgi
/ util (4) - cmath (1)
- continuation (2)
- csv (8)
- date (1)
- dbm (1)
- debug (1)
- delegate (1)
- drb (2)
- e2mmap (5)
- fiber (2)
- fiddle (7)
-
fiddle
/ import (6) -
fiddle
/ types (2) - fileutils (5)
- find (2)
- forwardable (3)
- gdbm (1)
- getoptlong (3)
- ipaddr (2)
-
irb
/ cmd / chws (2) -
irb
/ cmd / help (1) -
irb
/ cmd / nop (2) -
irb
/ cmd / pushws (3) -
irb
/ cmd / subirb (3) -
irb
/ ext / use-loader (2) -
irb
/ extend-command (4) -
irb
/ inspector (1) -
irb
/ magic-file (1) -
irb
/ output-method (6) - json (2)
-
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 (1)
- mathn (1)
- matrix (20)
- mkmf (18)
- monitor (1)
-
net
/ ftp (8) -
net
/ http (2) -
net
/ imap (11) -
net
/ smtp (3) - nkf (2)
- objspace (1)
- observer (1)
- open-uri (6)
- open3 (18)
- openssl (56)
- optparse (27)
- pathname (13)
- prettyprint (5)
- prime (1)
- psych (17)
- rake (15)
-
rdoc
/ markup (1) - readline (4)
- resolv (7)
-
rexml
/ document (4) -
rexml
/ parsers / sax2parser (5) -
rinda
/ tuplespace (2) - ripper (2)
- rss (2)
- rubygems (1)
-
rubygems
/ command (3) -
rubygems
/ dependency _ list (1) -
rubygems
/ remote _ fetcher (1) -
rubygems
/ security (1) -
rubygems
/ source _ index (4) -
rubygems
/ source _ info _ cache (2) -
rubygems
/ specification (6) -
rubygems
/ user _ interaction (9) -
rubygems
/ validator (2) -
rubygems
/ version _ option (2) - scanf (2)
- sdbm (1)
- set (2)
- shell (13)
-
shell
/ builtin-command (3) -
shell
/ command-processor (13) -
shell
/ filter (13) -
shell
/ system-command (2) - socket (12)
- stringio (4)
- strscan (3)
- sync (3)
- syslog (5)
- tempfile (6)
- thwait (5)
- tracer (3)
- uri (3)
-
webrick
/ accesslog (1) -
webrick
/ cgi (1) -
webrick
/ config (2) -
webrick
/ httpproxy (3) -
webrick
/ httpserver (1) -
webrick
/ httpservlet / abstract (2) -
webrick
/ httpservlet / prochandler (1) -
webrick
/ httpstatus (1) -
webrick
/ httputils (2) -
win32
/ registry (19) - win32ole (8)
- zlib (34)
クラス
-
ARGF
. class (4) - Addrinfo (1)
- Array (22)
- BasicObject (6)
- BasicSocket (6)
-
Benchmark
:: Report (2) -
Benchmark
:: Tms (2) - BigDecimal (10)
- CGI (6)
-
CGI
:: Cookie (1) - CSV (4)
-
CSV
:: Row (2) - Complex (5)
- Continuation (2)
- DBM (1)
-
DRb
:: DRbServer (1) - Date (2)
- DateTime (1)
- Delegator (1)
- Dir (3)
-
Encoding
:: Converter (7) - Enumerator (4)
-
Enumerator
:: Lazy (5) -
Enumerator
:: Yielder (1) - Exception (2)
- Fiber (4)
-
Fiddle
:: Closure :: BlockCaller (1) -
Fiddle
:: Function (2) -
Fiddle
:: Pointer (2) - File (12)
- Float (3)
- GDBM (1)
-
Gem
:: Command (3) -
Gem
:: DependencyList (1) -
Gem
:: RemoteFetcher (1) -
Gem
:: SourceIndex (4) -
Gem
:: SourceInfoCache (2) -
Gem
:: Specification (6) -
Gem
:: StreamUI (1) -
Gem
:: Validator (2) - GetoptLong (3)
- Hash (4)
- IO (39)
- IPAddr (1)
-
IRB
:: ExtendCommand :: ChangeWorkspace (1) -
IRB
:: ExtendCommand :: CurrentWorkingWorkspace (1) -
IRB
:: ExtendCommand :: Foreground (1) -
IRB
:: ExtendCommand :: Help (1) -
IRB
:: ExtendCommand :: IrbCommand (1) -
IRB
:: ExtendCommand :: Kill (1) -
IRB
:: ExtendCommand :: Nop (2) -
IRB
:: ExtendCommand :: PopWorkspace (1) -
IRB
:: ExtendCommand :: PushWorkspace (1) -
IRB
:: ExtendCommand :: Workspaces (1) -
IRB
:: Inspector (1) -
IRB
:: OutputMethod (5) -
IRB
:: StdioOutputMethod (1) - Integer (6)
- MatchData (1)
- Matrix (16)
- Method (1)
- Module (15)
-
Net
:: FTP (7) -
Net
:: FTP :: MLSxEntry (1) -
Net
:: HTTP (1) -
Net
:: IMAP (6) -
Net
:: IMAP :: ContentDisposition (1) -
Net
:: IMAP :: MailboxList (1) -
Net
:: IMAP :: TaggedResponse (1) -
Net
:: IMAP :: UntaggedResponse (1) -
Net
:: SMTP (3) - Numeric (5)
- Object (13)
-
OpenSSL
:: BN (1) -
OpenSSL
:: Cipher :: IDEA (1) -
OpenSSL
:: Cipher :: RC5 (1) -
OpenSSL
:: Digest :: Digest (1) -
OpenSSL
:: Engine (2) -
OpenSSL
:: OCSP :: BasicResponse (3) -
OpenSSL
:: OCSP :: Request (2) -
OpenSSL
:: OCSP :: Response (1) -
OpenSSL
:: PKCS7 (5) -
OpenSSL
:: PKey :: DH (3) -
OpenSSL
:: PKey :: DSA (5) -
OpenSSL
:: PKey :: EC :: Group (2) -
OpenSSL
:: PKey :: RSA (10) -
OpenSSL
:: SSL :: SSLContext (5) -
OpenSSL
:: X509 :: Certificate (1) -
OpenSSL
:: X509 :: ExtensionFactory (1) -
OpenSSL
:: X509 :: Name (1) -
OpenSSL
:: X509 :: StoreContext (1) - OpenStruct (1)
- OptionParser (26)
- Pathname (13)
- PrettyPrint (4)
- Prime (1)
- Proc (3)
-
Psych
:: Handler (5) -
Psych
:: Nodes :: Mapping (1) -
Psych
:: Nodes :: Scalar (1) -
Psych
:: Nodes :: Sequence (1) -
Psych
:: Nodes :: Stream (2) -
Psych
:: Visitors :: YAMLTree (1) -
RDoc
:: Markup (1) -
RDoc
:: Options (1) -
REXML
:: Document (2) -
REXML
:: Element (1) -
REXML
:: Parsers :: SAX2Parser (5) -
REXML
:: Text (1) -
RSS
:: Rss :: Channel :: Item :: Guid (1) -
Rake
:: Application (1) -
Rake
:: FileList (5) -
Rake
:: Task (2) - Range (3)
- Rational (5)
- Regexp (4)
-
Resolv
:: DNS (1) -
Resolv
:: DNS :: Resource :: TXT (1) -
Resolv
:: IPv6 (5) -
Rinda
:: TupleEntry (1) -
Rinda
:: TupleSpace (1) - Ripper (2)
-
RubyVM
:: InstructionSequence (1) - SDBM (1)
- Set (2)
- Shell (13)
-
Shell
:: Cat (1) -
Shell
:: CommandProcessor (13) -
Shell
:: Echo (1) -
Shell
:: Filter (13) -
Shell
:: SystemCommand (2) -
Shell
:: Void (1) - Socket (2)
-
Socket
:: AncillaryData (3) - String (29)
- StringIO (4)
- StringScanner (3)
- Struct (1)
- Symbol (5)
-
Sync
_ m :: Err (1) -
Sync
_ m :: LockModeFailer (1) -
Sync
_ m :: UnknownLocker (1) - Tempfile (5)
- Thread (5)
- ThreadsWait (5)
- Time (4)
- TracePoint (2)
- Tracer (4)
-
URI
:: Generic (1) - UnboundMethod (1)
- Vector (3)
-
WEBrick
:: CGI (1) -
WEBrick
:: HTTPServer (1) -
WEBrick
:: HTTPServlet :: AbstractServlet (2) -
WEBrick
:: HTTPServlet :: ProcHandler (1) -
WEBrick
:: HTTPUtils :: FormData (1) - WIN32OLE (3)
-
WIN32OLE
_ EVENT (3) -
Win32
:: Registry (18) -
Zlib
:: Deflate (4) -
Zlib
:: GzipFile (3) -
Zlib
:: GzipReader (15) -
Zlib
:: GzipWriter (11)
モジュール
- Benchmark (4)
-
CGI
:: HtmlExtension (8) -
CGI
:: QueryExtension (4) -
CGI
:: QueryExtension :: Value (1) - CMath (1)
- DRb (1)
- DublinCoreModel (1)
- Enumerable (22)
- Exception2MessageMapper (5)
- Fiddle (2)
-
Fiddle
:: Importer (5) - FileUtils (8)
- Find (2)
- Forwardable (1)
- GC (1)
-
GC
:: Profiler (1) -
Gem
:: Security (1) -
Gem
:: UserInteraction (8) -
Gem
:: VersionOption (2) -
IRB
:: ContextExtender (2) -
IRB
:: ExtendCommandBundle (4) - Kconv (1)
- Kernel (61)
- Marshal (2)
- Math (3)
- NKF (1)
- ObjectSpace (3)
- Observable (1)
- Open3 (18)
-
OpenSSL
:: ASN1 (1) -
OpenSSL
:: Buffering (3) - OpenURI (2)
-
OpenURI
:: OpenRead (2) -
OptionParser
:: Arguable (1) - Process (6)
-
Process
:: GID (3) -
Process
:: UID (3) - Psych (2)
-
Rake
:: TaskManager (1) - Readline (2)
- SingleForwardable (2)
- Syslog (5)
- URI (2)
-
WEBrick
:: Config (2) -
WIN32OLE
:: VARIANT (1)
オブジェクト
- ENV (1)
-
IRB
:: MagicFile (1) -
Readline
:: HISTORY (1) -
WEBrick
:: NullReader (2) - main (4)
キーワード
- ! (1)
-
$ * (1) - % (2)
- ** (6)
- + (1)
- +@ (1)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (1) - << (2)
- === (1)
-
ALIGN
_ VOIDP (1) - ARGV (1)
- AccessLog (1)
- BasicObject (1)
- BasicTypes (1)
- Buffering (1)
- CStruct (1)
- Certificate (1)
- Cipher (1)
- Complex (2)
- Constants (1)
- Cookie (1)
- DATA (1)
-
DATA
_ PTR (1) - DOSISH 対応 (1)
-
Data
_ Get _ Struct (1) -
Data
_ Make _ Struct (1) -
Data
_ Wrap _ Struct (1) - DigestAuth (1)
-
ENCODING
_ SPEC _ RE (1) -
EXCEPTION
_ ALL (1) - Error (1)
- ErrorData (1)
- Extension (1)
- FORMAT (2)
- Fail (5)
- Fiber (1)
- FileHandler (1)
- FormData (1)
-
HKEY
_ CLASSES _ ROOT (1) -
HKEY
_ CURRENT _ CONFIG (1) -
HKEY
_ CURRENT _ USER (1) -
HKEY
_ DYN _ DATA (1) -
HKEY
_ LOCAL _ MACHINE (1) -
HKEY
_ PERFORMANCE _ DATA (1) -
HKEY
_ PERFORMANCE _ NLSTEXT (1) -
HKEY
_ PERFORMANCE _ TEXT (1) -
HKEY
_ USERS (1) - HTTPExceptions (1)
- HTTPProxyServer (1)
- HTTPStatus (1)
- IO (1)
- IPAddr (1)
-
Init
_ stack (1) - InstructionSequence (1)
- Location (1)
- Mapping (1)
- Marshal フォーマット (1)
- Matrix (1)
- MonitorMixin (1)
-
NEWS for Ruby 2
. 0 . 0 (1) -
NEWS for Ruby 2
. 1 . 0 (1) -
NEWS for Ruby 2
. 3 . 0 (1) - NKF (1)
- Numeric (1)
- OPTS (1)
- ObjectId (1)
- Policies (1)
- PrettyPrint (1)
- RBASIC (1)
- RBIGNUM (1)
- RFILE (1)
- RSTRING (1)
-
RSTRING
_ END (1) -
RSTRING
_ PTR (1) - Raise (2)
- Rational (2)
- Readline (1)
-
Regex
_ 6Hex4Dec (1) -
Regex
_ 8Hex (1) -
Regex
_ CompressedHex (1) -
Regex
_ CompressedHex4Dec (1) - ResponseError (1)
- Ruby が動作するプラットフォーム (1)
- Rubyの起動 (1)
- Ruby変更履歴 (1)
- Ruby用語集 (1)
- ScriptError (1)
- Sequence (1)
- Session (1)
- SignalException (1)
- StringValuePtr (1)
-
TYPE
_ VOIDP (1) - Tempfile (1)
- TracePoint (1)
-
VT
_ PTR (1) -
WIN32OLE
_ VARIANT (1) - Win32 (1)
- Win32Types (1)
- Win32ネイティブ版 (1)
- [] (7)
-
_ _ id _ _ (1) -
_ _ send _ _ (2) -
_ strptime (1) - accept (2)
- add (2)
-
add
_ common _ option (1) -
add
_ dependency (1) -
add
_ development _ dependency (1) -
add
_ filter (2) -
add
_ option (1) -
add
_ platform _ option (1) -
add
_ runtime _ dependency (1) -
add
_ specs (1) -
add
_ version _ option (1) -
add
_ word _ pair (1) - advise (1)
- alert (1)
-
alert
_ error (1) -
alert
_ warning (1) - alias (1)
-
alias
_ command (3) -
alias
_ method (1) - alien (1)
- alive? (1)
-
all
_ waits (2) -
arg
_ add (1) -
arg
_ blk _ pass (1) -
arg
_ concat (1) -
arg
_ defined (1) -
arg
_ prepend (1) - arity (3)
- aryset (1)
- asinh (1)
- ask (1)
-
ask
_ yes _ no (1) - assign (1)
-
assign
_ in _ cond (1) - assignable (1)
- attr (2)
-
attr
_ accessor (1) -
attr
_ reader (1) -
attr
_ writer (1) - attribute (1)
- attributes (1)
- attrset (1)
- authenticate (1)
-
autoload
_ i (1) - backtrace (1)
- benchmark (1)
- bigdecimal (1)
-
bigdecimal
/ ludcmp (1) -
bigdecimal
/ math (1) -
bigdecimal
/ newton (1) -
bigdecimal
/ util (1) - bind (1)
- binmode (1)
- binread (1)
- binwrite (1)
-
blk
_ copy _ prev (1) -
blk
_ free (1) -
blk
_ mark (1) -
blk
_ orphan (1) -
block
_ append (1) -
block
_ pass (1) - bm (1)
-
bm
_ mark (1) -
boot
_ defclass (1) - bsearch (4)
- call (3)
-
call
_ cfunc (1) -
call
_ op (1) -
call
_ trace _ func (1) - caller (3)
- capitalize (2)
- capitalize! (1)
- capture2 (1)
- capture2e (1)
- capture3 (1)
- cat (3)
- cgi (1)
-
cgi
/ session (1) -
check
_ nonce (1) -
checkbox
_ group (2) - chmod (5)
- chomp (1)
-
choose
_ from _ list (1) - chop (1)
- chown (4)
-
clone
_ method (1) - close (1)
- collect (2)
- collect! (2)
-
collect
_ concat (3) - compile (1)
-
compile
_ error (1) -
compile
_ option= (1) - concat (2)
- cond (1)
- cond0 (1)
-
connect
_ address (1) - convert (1)
-
convert
_ type (1) -
convertible
_ int (2) -
copy
_ fds (1) -
copy
_ node _ scope (1) - count (1)
- create (3)
- crit (1)
- crypt (1)
- curry (1)
-
dc
_ types (1) - decrypt (1)
-
def
_ delegators (1) -
def
_ extend _ command (2) -
def
_ inspector (1) -
def
_ instance _ delegators (1) -
def
_ single _ delegators (1) -
define
_ final (1) -
define
_ task (2) - deflate (1)
- delete (5)
- delete! (1)
-
delete
_ never (1) - diagonal (1)
-
did
_ you _ mean (1) -
digest
/ sha2 (1) - dir (2)
- div (1)
- divmod (2)
- dlload (1)
- downcase (2)
- downcase! (1)
- dump (2)
-
dump
_ stream (1) -
dyna
_ pop (1) -
dyna
_ push (1) - each (4)
-
each
_ byte (2) -
each
_ line (4) -
each
_ object (2) -
each
_ with _ index (2) -
each
_ with _ object (2) - echo (3)
- eid= (2)
- eigen (1)
- eigensystem (1)
-
emacs
_ editing _ mode (1) - empty (1)
- encode (3)
- encoding= (1)
- encrypt (1)
-
end
_ with? (1) - entries (1)
-
enum
_ for (2) -
errat
_ setter (1) -
errinfo
_ setter (1) - escapeElement (1)
-
escape
_ element (1) -
ev
_ const _ defined (1) -
ev
_ const _ get (1) - eval (1)
-
eval
_ node (1) -
eval
_ under (1) -
eval
_ under _ i (1) - exclude (1)
- exec (4)
-
exec
_ under (1) - execute (11)
- extern (1)
- facts (1)
- fail (1)
- fatal (1)
-
fc
_ i (1) -
fc
_ path (1) - fiddle (1)
-
fiddle
/ import (1) - fields (1)
- file (1)
-
file
_ create (1) - find (2)
-
find
_ bad _ fds (1) -
find
_ header (1) -
find
_ library (2) -
find
_ type (2) - finish (2)
- fixpos (1)
-
flat
_ map (3) - flock (1)
- flush (1)
- fnmatch (1)
- fnmatch? (1)
-
for
_ fd (1) - fork (1)
- format (3)
-
frame
_ dup (1) - frexp (1)
-
from
_ gems _ in (1) -
from
_ installed _ gems (1) - ftype (1)
- gamma (1)
- gem (1)
- generate (6)
-
generic
_ ivar _ remove (1) - get (1)
-
get
_ instance (2) -
get
_ option (1) -
get
_ proxy _ from _ env (1) - getaddrinfo (1)
- getc (1)
- getnameinfo (1)
- getopts (5)
- gets (2)
- gettable (1)
-
givar
_ i (1) - glob (2)
-
global
_ id (1) -
grant
_ privilege (2) -
grep
_ v (1) - groups (1)
- gsub (2)
- guess (2)
-
gvar
_ i (1) -
handle
_ rescue (1) - handler= (1)
-
has
_ key? (1) -
here
_ document (1) -
heredoc
_ restore (1) - hstack (2)
- import (1)
- include (3)
- include? (1)
- independent? (2)
- info (2)
- initialize (1)
-
ins
_ methods _ i (1) -
ins
_ methods _ priv _ i (1) -
ins
_ methods _ prot _ i (1) - insert (1)
- inspect (2)
-
install
_ extend _ commands (2) -
instance
_ exec (1) -
int
_ from _ prime _ division (1) -
intersect
_ fds (1) - invoke (3)
- irb (1)
-
irb
_ load (1) -
irb
_ require (1) - isPermaLink (1)
-
is
_ defined (1) -
is
_ pointer _ to _ heap (1) - item (1)
-
ivar
_ i (1) - j (1)
- jj (1)
- join (7)
-
join
_ nowait (1) - key? (1)
- keys (1)
- kill (1)
- lchmod (1)
- lchown (1)
- lineno (1)
- lineno= (1)
- list (2)
-
list
_ append (1) -
list
_ concat (1) - listen (5)
-
literal
_ append (1) -
literal
_ concat (1) -
literal
_ concat _ dstr (1) -
literal
_ concat _ list (1) -
literal
_ concat _ string (1) - load (1)
-
load
_ gems _ in (1) -
local
_ tbl (1) -
localjump
_ error (1) - log (1)
- logop (1)
- ls (2)
- lup (1)
-
lup
_ decomposition (1) - makedirs (1)
- map (2)
- map! (2)
-
mark
_ global _ entry (1) -
mark
_ locations _ array (1) -
mark
_ source _ filename (1) - massign (1)
- match (2)
-
match
_ fds (1) -
match
_ gen (1) -
max
_ by (4) -
memsize
_ of (1) -
merge
_ libs (1) -
method
_ call (1) -
method
_ list (1) -
method
_ missing (3) -
minitest
/ mock (1) -
minitest
/ spec (1) -
minitest
/ unit (1) - mkdir (4)
-
mkdir
_ p (1) - mkpath (1)
-
mod
_ inverse (1) - mode (2)
-
module
_ function (1) -
module
_ setup (1) - modulo (1)
- monitor (1)
- mount (1)
- mult (1)
- name (2)
-
net
/ imap (1) - new (54)
-
new
_ blktag (1) -
new
_ call (1) -
new
_ dvar (1) -
new
_ fcall (1) -
new
_ super (1) -
newline
_ node (1) - newtok (1)
-
node
_ assign (1) - nodeline (1)
- notice (1)
- notify (7)
-
notify
_ observers (1) - on (12)
-
on
_ event (1) -
on
_ event _ with _ outargs (1) -
on
_ head (1) -
on
_ tail (1) - open (19)
-
open
_ timeout= (2) -
open
_ uri (2) - optparse (1)
- order (2)
-
os
_ each _ obj (1) - out (1)
- pack (2)
- pack テンプレート文字列 (1)
- param (1)
- parse (2)
-
parse
_ csv (1) -
parse
_ string (1) - permute (1)
- pipe (4)
-
pipe
_ open (1) - pipeline (1)
-
pipeline
_ r (2) -
pipeline
_ rw (2) -
pipeline
_ start (2) -
pipeline
_ w (2) -
point
_ conversion _ form (1) -
point
_ conversion _ form= (1) - popen (14)
- popen2 (2)
- popen2e (2)
- popen3 (2)
- pow (2)
- power (2)
- pp (1)
- ppx (1)
- prepend (1)
- prettyprint (1)
-
primitive
_ convert (4) - print (9)
- printf (7)
- printn (1)
- private (2)
-
private
_ class _ method (1) -
private
_ constant (1) -
private
_ decrypt (1) -
private
_ encrypt (1) -
proc
_ s _ new (1) - product (2)
-
progress
_ reporter (1) -
psych
_ y (1) - ptr (1)
- public (2)
-
public
_ class _ method (1) -
public
_ constant (1) -
public
_ decrypt (1) -
public
_ encrypt (1) -
public
_ key (1) -
public
_ send (2) - push (1)
- puts (7)
-
radio
_ group (2) - rake (1)
-
rake
/ classic _ namespace (1) -
range
_ op (1) -
raw
_ data (1) -
rb
_ add _ method (1) -
rb
_ ary _ aref (1) -
rb
_ autoload (1) -
rb
_ autoload _ id (1) -
rb
_ backref _ error (1) -
rb
_ call (1) -
rb
_ call0 (1) -
rb
_ call _ super (1) -
rb
_ check _ convert _ type (1) -
rb
_ class _ initialize (1) -
rb
_ class _ instance _ methods (1) -
rb
_ class _ new _ instance (1) -
rb
_ class _ private _ instance _ methods (1) -
rb
_ class _ protected _ instance _ methods (1) -
rb
_ class _ s _ new (1) -
rb
_ compile _ cstr (1) -
rb
_ compile _ error (1) -
rb
_ compile _ error _ with _ enc (1) -
rb
_ compile _ file (1) -
rb
_ compile _ string (1) -
rb
_ const _ list (1) -
rb
_ cont _ call (1) -
rb
_ convert _ type (1) -
rb
_ cstr _ to _ dbl (1) -
rb
_ cv _ set (1) -
rb
_ data _ object _ alloc (1) -
rb
_ define _ alias (1) -
rb
_ define _ attr (1) -
rb
_ define _ class (1) -
rb
_ define _ class _ under (1) -
rb
_ define _ class _ variable (1) -
rb
_ define _ const (1) -
rb
_ define _ global _ const (1) -
rb
_ define _ global _ function (1) -
rb
_ define _ hooked _ variable (1) -
rb
_ define _ method (1) -
rb
_ define _ method _ id (1) -
rb
_ define _ module (1) -
rb
_ define _ module _ function (1) -
rb
_ define _ module _ under (1) -
rb
_ define _ private _ method (1) -
rb
_ define _ protected _ method (1) -
rb
_ define _ readonly _ variable (1) -
rb
_ define _ singleton _ method (1) -
rb
_ define _ variable (1) -
rb
_ define _ virtual _ variable (1) -
rb
_ disable _ super (1) -
rb
_ enable _ super (1) -
rb
_ eval (1) -
rb
_ eval _ string (1) -
rb
_ eval _ string _ protect (1) -
rb
_ eval _ string _ wrap (1) -
rb
_ f _ abort (1) -
rb
_ f _ caller (1) -
rb
_ f _ eval (1) -
rb
_ f _ exit (1) -
rb
_ f _ load (1) -
rb
_ f _ missing (1) -
rb
_ f _ raise (1) -
rb
_ f _ send (1) -
rb
_ f _ throw (1) -
rb
_ f _ trace _ var (1) -
rb
_ f _ untrace _ var (1) -
rb
_ fatal (1) -
rb
_ feature _ p (1) -
rb
_ funcall2 (1) -
rb
_ funcall3 (1) -
rb
_ gc _ mark _ frame (1) -
rb
_ gc _ mark _ locations (1) -
rb
_ gc _ register _ address (1) -
rb
_ gc _ unregister _ address (1) -
rb
_ generic _ ivar _ table (1) -
rb
_ get _ method _ body (1) -
rb
_ global _ entry (1) -
rb
_ global _ variable (1) -
rb
_ gvar _ defined (1) -
rb
_ id2name (1) -
rb
_ intern (1) -
rb
_ io _ mode _ flags2 (1) -
rb
_ iterate (1) -
rb
_ iv _ get (1) -
rb
_ iv _ set (1) -
rb
_ load (1) -
rb
_ load _ protect (1) -
rb
_ mark _ hash (1) -
rb
_ mark _ tbl (1) -
rb
_ mod _ attr (1) -
rb
_ mod _ attr _ accessor (1) -
rb
_ mod _ attr _ reader (1) -
rb
_ mod _ attr _ writer (1) -
rb
_ mod _ const _ at (1) -
rb
_ mod _ const _ of (1) -
rb
_ mod _ define _ method (1) -
rb
_ mod _ include (1) -
rb
_ mod _ modfunc (1) -
rb
_ mod _ module _ eval (1) -
rb
_ mod _ private (1) -
rb
_ mod _ private _ method (1) -
rb
_ mod _ protected (1) -
rb
_ mod _ public (1) -
rb
_ mod _ public _ method (1) -
rb
_ obj _ call _ init (1) -
rb
_ obj _ extend (1) -
rb
_ obj _ instance _ eval (1) -
rb
_ obj _ respond _ to (1) -
rb
_ obj _ singleton _ methods (1) -
rb
_ protect (1) -
rb
_ provide (1) -
rb
_ provided (1) -
rb
_ raise (1) -
rb
_ remove _ method (1) -
rb
_ require (1) -
rb
_ reserved _ word (1) -
rb
_ scan _ args (1) -
rb
_ set _ class _ path (1) -
rb
_ set _ end _ proc (1) -
rb
_ source _ filename (1) -
rb
_ svar (1) -
rb
_ thread _ join _ m (1) -
rb
_ thread _ raise (1) -
rb
_ thread _ raise _ m (1) -
rb
_ thread _ s _ new (1) -
rb
_ thread _ signal _ raise (1) -
rb
_ thread _ start _ 0 (1) -
rb
_ throw (1) -
rb
_ time _ timespec _ new (1) -
rb
_ timespec _ now (1) -
rb
_ to _ integer (1) -
rb
_ undef _ method (1) -
rb
_ undefined (1) -
rb
_ with _ disable _ interrupt (1) - rdoc (1)
- read (8)
-
read
_ only (1) - readchar (1)
- readline (1)
- readlines (2)
-
readonly
_ setter (1) - readpartial (1)
- realtime (1)
- recvmsg (1)
-
recvmsg
_ nonblock (1) - refine (1)
- rehash (1)
- remainder (1)
-
remove
_ entry _ secure (1) -
remove
_ trace (1) - renew (1)
- report (1)
-
report
_ on _ exception (1) -
report
_ on _ exception= (1) -
respond
_ to _ missing? (1) - resume (1)
-
ret
_ args (1) -
rexml
/ parsers / ultralightparser (1) -
rinda
/ rinda (1) - rm (3)
-
rm
_ f (1) -
rm
_ rf (1) - rmdir (3)
- round (3)
- ruby (1)
-
ruby 1
. 6 feature (1) -
ruby 1
. 8 . 2 feature (1) -
ruby 1
. 8 . 3 feature (1) -
ruby 1
. 8 . 4 feature (1) -
ruby 1
. 9 feature (1) -
ruby
_ stack _ length (1) -
ruby
_ xcalloc (1) -
ruby
_ xfree (1) -
ruby
_ xmalloc (1) -
ruby
_ xrealloc (1) -
rubygems
/ security (1) - run (1)
-
run
_ single _ final (1) -
safe
_ ln (1) -
safe
_ load (1) - say (1)
- scalar (1)
-
scan
_ full (1) - scanf (2)
-
scope
_ dup (1) -
scrolling
_ list (2) - search (1)
-
search
_ full (1) -
search
_ method (1) -
search
_ with _ source (1) - seek (2)
- select (1)
-
send
_ mail (1) - sendmail (1)
- sendmsg (1)
-
sendmsg
_ nonblock (1) -
session
_ cache _ mode= (1) -
session
_ cache _ size= (1) -
session
_ cache _ stats (1) - set (1)
-
set
_ default (1) -
set
_ encoding (2) -
set
_ method _ visibility (1) - setpriority (1)
- setrlimit (2)
- sh (1)
- shutdown (1)
-
sid
_ available? (2) - sign (2)
- sin! (1)
-
singleline
_ format (1) - spawn (5)
-
specific
_ eval (1) - split (2)
- sprintf (1)
- sprintf フォーマット (1)
- squeeze (1)
- squeeze! (1)
-
st
_ add _ direct (1) -
st
_ cleanup _ safe (1) -
st
_ delete (1) -
st
_ delete _ safe (1) -
st
_ foreach (1) -
st
_ free _ table (1) -
st
_ init _ numtable (1) -
st
_ init _ numtable _ with _ size (1) -
st
_ init _ strtable (1) -
st
_ init _ strtable _ with _ size (1) -
st
_ init _ table (1) -
st
_ init _ table _ with _ size (1) -
st
_ insert (1) -
st
_ lookup (1) - start (2)
-
start
_ mapping (1) -
start
_ sequence (1) -
start
_ service (1) -
start
_ stream (1) -
start
_ with? (1) - status (2)
- store (1)
- strftime (1)
- strhash (1)
- struct (1)
- sub (2)
- sum (4)
- superclass (1)
-
sv
_ i (1) - swapcase (2)
- swapcase! (1)
-
sweep
_ source _ filename (1) -
symbols
_ i (1) - syscall (1)
- sysopen (1)
- sysread (1)
- sysseek (1)
- system (5)
-
terminate
_ interaction (1) -
terminate
_ process (1) -
test
/ unit (1) - thread (1)
-
thread
_ status _ name (1) - time (1)
- timeouts= (1)
-
to
_ a (2) -
to
_ c (1) -
to
_ csv (1) -
to
_ enum (2) -
to
_ f (2) -
to
_ h (1) -
to
_ int (1) -
to
_ io (1) -
to
_ json (12) -
to
_ r (1) -
to
_ s (2) -
to
_ str (1) - tok (1)
- toklast (1)
-
top
_ const _ get (1) -
top
_ include (1) -
top
_ private (1) -
top
_ public (1) - trace (1)
-
trace
_ en (1) -
trace
_ ev (1) -
trace
_ func (2) - transfer (1)
-
transform
_ values (2) -
transform
_ values! (2) - traverse (1)
-
try
_ compile (2) -
try
_ link (2) -
try
_ run (2) -
uid
_ store (1) -
umethod
_ call (1) -
undef
_ setter (1) - unescapeElement (1)
-
unescape
_ element (1) - ungetc (1)
- union (2)
-
unix
_ rights (1) - unlink (1)
- unpack (1)
- unshift (1)
- upcase (2)
- upcase! (1)
- uri (1)
- using (2)
- utime (4)
-
val
_ setter (1) -
value
_ expr (1) -
values
_ at (6) -
var
_ getter (1) -
var
_ marker (1) -
var
_ setter (1) - verify (4)
-
verify
_ mode= (1) -
vi
_ editing _ mode (1) -
void
_ expr (1) -
void
_ stmts (1) - vstack (2)
- warn (2)
-
warn
_ unless _ e _ option (1) - warning (2)
-
warning
_ unless _ e _ option (1) -
webrick
/ cgi (1) -
webrick
/ httpauth / htgroup (1) - whitespace (1)
-
whole
_ match _ p (1) - win32ole (1)
-
with
_ index (1) -
with
_ object (1) - wrap (3)
- write (3)
-
write
_ smime (1) - wtime2time (1)
- xpopen (1)
- y (1)
- yield (3)
- yycompile (1)
- yyerror (1)
- zip (6)
- オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (1)
- セキュリティモデル (1)
- メソッド呼び出し(super・ブロック付き・yield) (1)
- リテラル (1)
- 制御構造 (1)
- 変数と定数 (1)
- 字句構造 (1)
- 正規表現 (1)
- 演算子式 (1)
- 終了処理 (1)
検索結果
先頭5件
-
static char * is
_ defined(VALUE self , NODE *node , char *buf) (78601.0) -
node を self = self で評価したとき値が得られそうな 式であれば、node の種別を表す文字列を返します。
node を self = self で評価したとき値が得られそうな
式であれば、node の種別を表す文字列を返します。 -
static inline int is
_ pointer _ to _ heap(void *ptr) (78601.0) -
-
static int ins
_ methods _ i(ID key , NODE *body , VALUE ary) (78601.0) -
rb_class_instance_methods() のイテレータブロック (通常版)。
rb_class_instance_methods() のイテレータブロック (通常版)。 -
static int ins
_ methods _ priv _ i(ID key , NODE *body , VALUE ary) (78601.0) -
rb_class_instance_methods() のイテレータブロック (private メソッド版)。
rb_class_instance_methods() のイテレータブロック
(private メソッド版)。 -
static int ins
_ methods _ prot _ i(ID key , NODE *body , VALUE ary) (78601.0) -
rb_class_instance_methods() のイテレータブロック (protected メソッド版)。
rb_class_instance_methods() のイテレータブロック
(protected メソッド版)。 -
static int intersect
_ fds(fd _ set *src , fd _ set *dst , int max) (78601.0) -
-
static int ivar
_ i(ID key , struct global _ entry *entry , VALUE ary) (78601.0) -
-
irb (78577.0)
-
irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
irb は Interactive Ruby の略です。
irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
=== irb の使い方
Ruby さえ知っていれば irb を使うのは簡単です。
irb コマンドを実行すると、以下のようなプロンプトが表れます。
$ irb
irb(main):001:0>
あとは Ruby の式を入力するだけで、その式が実行され、結果が表示されます。
irb(main):001:0> 1+2
3
irb(main):002:0> class Foo
irb(main):003:1> def f... -
オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (69769.0)
-
オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル * Ruby オフィシャルサイト https://www.ruby-lang.org/ja/ * version 2.4 対応リファレンス * 原著:まつもとゆきひろ * 最新版URL: https://www.ruby-lang.org/ja/documentation/
オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 2.4 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃っています。
標準添付ライブラリのリファレンスは一部未完成です。
それ以外のドキュメントについては、まだまだ書き直しが必要です。
=== 目次
* spec/intro
* spe... -
Rational
# *(other) -> Rational | Float (63673.0) -
積を計算します。
積を計算します。
@param other 自身に掛ける数
other に Float を指定した場合は、計算結果を Float で返しま
す。
//emlist[例][ruby]{
r = Rational(3, 4)
r * 2 # => (3/2)
r * 4 # => (3/1)
r * 0.5 # => 0.375
r * Rational(1, 2) # => (3/8)
//} -
String
# *(times) -> String (63655.0) -
文字列の内容を times 回だけ繰り返した新しい文字列を作成して返します。
文字列の内容を times 回だけ繰り返した新しい文字列を作成して返します。
@param times 整数
@return self を times 回繰り返した新しい文字列
@raise ArgumentError 引数に負数を指定したときに発生します。
//emlist[例][ruby]{
p "str" * 3 # => "strstrstr"
str = "abc"
p str * 4 # => "abcabcabcabc"
p str * 0 # => ""
p str # => "abc" (変化なし)
//} -
Integer
# *(other) -> Numeric (63619.0) -
算術演算子。積を計算します。
算術演算子。積を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果
//emlist[][ruby]{
2 * 3 # => 6
//} -
BigDecimal
# *(other) -> BigDecimal (63601.0) -
積を計算します。
積を計算します。
@param other self に掛ける数を指定します。
計算結果の精度についてはlib:bigdecimal#precisionを参照してください。 -
Matrix
# *(m) -> Matrix | Vector (63601.0) -
self に行列またはベクトル m を右から乗じた行列を返します。
self に行列またはベクトル m を右から乗じた行列を返します。
m が Vector オブジェクトなら返り値も Vector オブジェクトになります。
@param m 右からの乗算が定義可能な行列やベクトルを指定します。
@raise ExceptionForMatrix::ErrDimensionMismatch 次元が合わない場合に発生します -
Matrix
# *(other) -> Matrix (63601.0) -
self の各成分に数 other を掛けた行列を返します。
self の各成分に数 other を掛けた行列を返します。
@param other self の各成分に掛ける Numeric オブジェクトを指定します。 -
Rake
:: FileList # *(other) -> Array | String (63601.0) -
Array#* と動作を合わせるために再定義しています。
Array#* と動作を合わせるために再定義しています。
@see Array#* -
Gem
:: VersionOption # add _ version _ option(task = command , *wrap) (54904.0) -
option parser に対して --version オプションを追加します。
option parser に対して --version オプションを追加します。
@param task コマンド名を指定します。デフォルト値はインクルードされる側のクラスで指定されます。
@param wrap Gem::Command#add_option に渡すその他のオプションを指定します。 -
Array
# *(sep) -> String (54622.0) -
指定された sep を間にはさんで連結した文字列を生成して返します。Array#join(sep) と同じ動作をします。
指定された sep を間にはさんで連結した文字列を生成して返します。Array#join(sep) と同じ動作をします。
@param sep 文字列を指定します。
文字列以外のオブジェクトを指定した場合は to_str メソッドによ
る暗黙の型変換を試みます。
//emlist[例][ruby]{
p [1,2,3] * ","
# => "1,2,3"
//}
@see Array#join -
Array
# *(times) -> Array (54622.0) -
配列の内容を times 回 繰り返した新しい配列を作成して返します。 値はコピーされないことに注意してください。
配列の内容を times 回 繰り返した新しい配列を作成して返します。
値はコピーされないことに注意してください。
@param times 繰り返したい回数を整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによ
る暗黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
@raise ArgumentError 引数に負の数を指定した場合に発生します。
//emlist[例][... -
Vector
# *(m) -> Matrix (54619.0) -
自分自身を列ベクトル(行列)に変換して (実際には Matrix.column_vector(self) を適用) から、行列 m を右から乗じた行列 (Matrix クラス) を返します。
自分自身を列ベクトル(行列)に変換して (実際には Matrix.column_vector(self) を適用) から、行列 m を右から乗じた行列 (Matrix クラス) を返します。
@param m 右から乗算を行う行列
@raise ExceptionForMatrix::ErrDimensionMismatch 次元が合わない場合に発生します
=== 注意
引数の行列 m は自分自身を列ベクトルとした場合に乗算が定義できる行列である必要があります。
//emlist[例][ruby]{
require 'matrix'
v = Vector[1, 2]
a = [4,... -
Complex
# *(other) -> Complex (54409.0) -
積を計算します。
積を計算します。
@param other 自身に掛ける数
//emlist[例][ruby]{
Complex(1, 2) * 2 # => (2+4i)
Complex(1, 2) * Complex(2, 3) # => (-4+7i)
Complex(1, 2) * Rational(1, 2) # => ((1/2)+(1/1)*i)
//} -
PrettyPrint
. singleline _ format(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n" , genspace = lambda{|n| & # 39; & # 39; * n}) {|pp| . . . } -> object (46204.0) -
PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。 PrettyPrint.format に似ていますが、改行しません。
PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。
PrettyPrint.format に似ていますが、改行しません。
引数 maxwidth, newline と genspace は無視されます。ブロック中の breakable の実行は、
改行せずに text の実行であるかのように扱います。
@param output 出力先を指定します。output は << メソッドを持っていなければなりません。
@param maxwidth 無視されます。
@param newline 無視されます。
@param genspace 無視されます... -
Gem
:: UserInteraction # terminate _ interaction(*args) -> () (45901.0) -
アプリケーションを終了します。
アプリケーションを終了します。
@param args 委譲先のメソッドに与える引数です。 -
IRB
:: ExtendCommandBundle # irb _ require(*opts , &b) -> bool (45901.0) -
現在の irb に関する IRB::Context に対して irb_require コマンドを 実行します。
現在の irb に関する IRB::Context に対して irb_require コマンドを
実行します。
@see IRB::ExtendCommand::Require#execute -
NODE * rb
_ compile _ file(const char *f , VALUE file , int start) (37201.0) -
Ruby の IO オブジェクト file から文字列を読み込み、 それを Ruby プログラムとして構文木にコンパイルします。 作成した構文木は ruby_eval_tree と ruby_eval_tree_begin に 格納し、同時に ruby_eval_tree を返します。 またコンパイルするときにファイル f の line 行目からをコンパイル していると仮定します。
Ruby の IO オブジェクト file から文字列を読み込み、
それを Ruby プログラムとして構文木にコンパイルします。
作成した構文木は ruby_eval_tree と ruby_eval_tree_begin に
格納し、同時に ruby_eval_tree を返します。
またコンパイルするときにファイル f の line 行目からをコンパイル
していると仮定します。 -
VALUE rb
_ time _ timespec _ new(const struct timespec *ts , int offset) (37201.0) -
引数 ts、offset を元に Time オブジェクトを作成して返します。
引数 ts、offset を元に Time オブジェクトを作成して返します。
@param ts timespec 構造体のポインタ
@param offset 協定世界時との時差(秒)。
-86400 < offset < 86400 の場合は指定した時差に、INT_MAX
を指定した場合は地方時、INT_MAX-1 を指定した場合は UTC に
なります。
@raise ArgumentError offset に上述の範囲以外の値を指定した場合に発生し
ま... -
Gem
:: VersionOption # add _ platform _ option(task = command , *wrap) (36604.0) -
option parser に対して --platform オプションを追加します。
option parser に対して --platform オプションを追加します。
@param task コマンド名を指定します。デフォルト値はインクルードされる側のクラスで指定されます。
@param wrap Gem::Command#add_option に渡すその他のオプションを指定します。 -
static VALUE define
_ final(int argc , VALUE *argv , VALUE os) (36601.0) -
-
static VALUE run
_ single _ final(VALUE *args) (36601.0) -
-
void rb
_ define _ singleton _ method(VALUE obj , const char *name , VALUE (*func)() , int argc) (36601.0) -
obj に特異メソッド name を定義します。 メソッドの実体を func に関数ポインタで与え、その関数がとる 引数のタイプを argc に渡します。argc のフォーマットに ついては rb_define_method の記述を参照してください。
obj に特異メソッド name を定義します。
メソッドの実体を func に関数ポインタで与え、その関数がとる
引数のタイプを argc に渡します。argc のフォーマットに
ついては rb_define_method の記述を参照してください。 -
rinda
/ rinda (36091.0) -
Rubyで実装されたタプルスペース(Tuple Space)を扱うためのライブラリです。
Rubyで実装されたタプルスペース(Tuple Space)を扱うためのライブラリです。
タプルスペースとは並列プログラムにおける一つのパターンです。
並列プログラミングにおいては、ロックのような同期処理が必須ですが、
適切な同期処理を実現することは困難をともないます。
このパターンにおいては、複数の並列単位(スレッド/プロセス)間の通信をすべて
タプルスペースという領域を経由して行います。これによって
プロセス間の通信トポロジーを単純化し、問題を簡単化します。
タプルスペースに対しては、タプルを書き込む(write)、取り出す(take)、
タプルの要素を覗き見る(read)
という操作の... -
Time
# strftime(format) -> String (28345.0) -
時刻を format 文字列に従って文字列に変換した結果を返します。
時刻を format 文字列に従って文字列に変換した結果を返します。
@param format フォーマット文字列を指定します。使用できるものは 以下の通りです。
* %A: 曜日の名称(Sunday, Monday ... )
* %a: 曜日の省略名(Sun, Mon ... )
* %B: 月の名称(January, February ... )
* %b: 月の省略名(Jan, Feb ... )
* %C: 世紀 (2009年であれば 20)
* %c: 日付と時刻 (%a %b %e %T %Y)
* %D: 日付 (%m/%d/%y)
* ... -
Win32
:: Registry . wtime2time(wtime) (27919.0) -
@todo
@todo
64bit の FILETIME を Time オブジェクトに変換します。
詳細は以下の MSDN Library を参照してください。
* FILETIME Structure: http://msdn.microsoft.com/library/en-us/sysinfo/base/filetime_str.asp -
Gem
:: SourceIndex . from _ gems _ in(*spec _ dirs) -> Gem :: SourceIndex (27901.0) -
引数で与えられたディレクトリに置かれている Ruby スクリプト形式の gemspec ファイルを使用して 新しいインスタンスを作成します。
引数で与えられたディレクトリに置かれている Ruby スクリプト形式の gemspec ファイルを使用して
新しいインスタンスを作成します。
@param spec_dirs gemspec ファイルが置かれているディレクトリを一つ以上指定します。 -
Gem
:: SourceIndex . from _ installed _ gems(*deprecated) -> Gem :: SourceIndex (27901.0) -
与えられたパスをもとに、インスタンスを作成するファクトリメソッドです。
与えられたパスをもとに、インスタンスを作成するファクトリメソッドです。
@param deprecated この引数は非推奨です。後方互換性のためにのみ提供されているので使用すべきではありません。
@see Gem::SourceIndex.from_gems_in -
Prime
# int _ from _ prime _ division(pd) -> Integer (27655.0) -
素因数分解された結果を元の数値に戻します。
素因数分解された結果を元の数値に戻します。
引数が [[p_1, e_1], [p_2, e_2], ...., [p_n, e_n]] のようであるとき、
結果は p_1**e_1 * p_2**e_2 * .... * p_n**e_n となります。
@param pd 整数のペアの配列を指定します。含まれているペアの第一要素は素因数を、
第二要素はその素因数の指数をあらわします。
//emlist[例][ruby]{
require 'prime'
Prime.int_from_prime_division([[2,2], [3,1]]) #=> 12
P... -
StringScanner
# inspect -> String (27655.0) -
StringScannerオブジェクトを表す文字列を返します。
StringScannerオブジェクトを表す文字列を返します。
文字列にはクラス名の他、以下の情報が含まれます。
* スキャナポインタの現在位置。
* スキャン対象の文字列の長さ。
* スキャンポインタの前後にある文字。上記実行例の @ がスキャンポインタを表します。
//emlist[例][ruby]{
require 'strscan'
s = StringScanner.new('test string')
s.inspect # => "#<StringScanner 0/11 @ \"test ..... -
Process
:: GID . # eid=(id) (27637.0) -
現在のプロセスの実効グループ ID を id に変更します。成功したら id を返します。
現在のプロセスの実効グループ ID を id に変更します。成功したら id を返します。
実グループ ID は変更されないことが保証されます。
保存グループ ID が変更されないかもしれないので root 権限の完全放棄には使えません。
保存グループ ID が変化するかどうかは Process::GID.#re_exchangeable?
が true を返すかどうかで決まります。
* true の環境では、実グループ ID と異なる値を設定した場合、保存グループ ID は新しい実効グループ ID の値に設定されます。
* false の環境では保存グループ ID は変化しません。
... -
Process
:: UID . # eid=(id) (27637.0) -
現在のプロセスの実効ユーザ ID を id に変更します。成功したら id を返します。
現在のプロセスの実効ユーザ ID を id に変更します。成功したら id を返します。
実ユーザ ID は変更されないことが保証されます。
保存ユーザ ID が変更されないかもしれないので root 権限の完全放棄には使えません。
保存ユーザ ID が変化するかどうかは Process::UID.#re_exchangeable?
が true を返すかどうかで決まります。
* true の環境では、実ユーザ ID と異なる値を設定した場合、保存ユーザ ID は新しい実効ユーザ ID の値に設定されます。
* false の環境では保存ユーザ ID は変化しません。
利用できるか... -
ThreadsWait
# join _ nowait(*threads) -> () (27619.0) -
終了を待つスレッドの対象として、threads で指定されたスレッドを指定します。 しかし、実際には終了をまちません。
終了を待つスレッドの対象として、threads で指定されたスレッドを指定します。
しかし、実際には終了をまちません。
@param threads 複数スレッドの終了を待つスレッドに指定されたthreadsを加えます。
require 'thwait'
threads = []
5.times {|i|
threads << Thread.new { sleep 1; p Thread.current }
}
thall = ThreadsWait.new
p thall.threads #=> []
thall.join_nowait(*thr... -
ThreadsWait
. all _ waits(*threads) -> () (27619.0) -
指定されたスレッドすべてが終了するまで待ちます。 ブロックが与えられた場合、スレッド終了時にブロックを評価します。
指定されたスレッドすべてが終了するまで待ちます。
ブロックが与えられた場合、スレッド終了時にブロックを評価します。
@param threads 終了するまでまつスレッドを一つもしくは複数指定します。
require 'thwait'
threads = []
5.times {|i|
threads << Thread.new { sleep 1; p Thread.current }
}
ThreadsWait.all_waits(*threads) {|th| printf("end %s\n", th.inspect) }
# 出力例
#=... -
ThreadsWait
. all _ waits(*threads) {|thread| . . . } -> () (27619.0) -
指定されたスレッドすべてが終了するまで待ちます。 ブロックが与えられた場合、スレッド終了時にブロックを評価します。
指定されたスレッドすべてが終了するまで待ちます。
ブロックが与えられた場合、スレッド終了時にブロックを評価します。
@param threads 終了するまでまつスレッドを一つもしくは複数指定します。
require 'thwait'
threads = []
5.times {|i|
threads << Thread.new { sleep 1; p Thread.current }
}
ThreadsWait.all_waits(*threads) {|th| printf("end %s\n", th.inspect) }
# 出力例
#=... -
OpenSSL
:: Buffering # printf(format , *args) -> nil (27604.0) -
format に従い引数 args を文字列に変換して 出力します。
format に従い引数 args を文字列に変換して
出力します。
IO#printf と同様です。
@param format 出力フォーマット文字列
@param arg 出力するオブジェクト
@see Kernel.#printf -
StringIO
# printf(format , *obj) -> nil (27604.0) -
指定されたフォーマットに従い各引数 obj を文字列に変換して、自身に出力します。
指定されたフォーマットに従い各引数 obj を文字列に変換して、自身に出力します。
@param format 文字列のフォーマットを指定します。Kernel.#format を参照して下さい。
@param obj 書き込みたいオブジェクトを指定します。
@raise IOError 自身が書き込み用にオープンされていなければ発生します。
//emlist[例][ruby]{
require "stringio"
a = StringIO.new("", 'r+')
a.printf("%c%c%c", 97, 98, 99)
a.string ... -
WIN32OLE
# invoke(name , *args) -> object | nil (27604.0) -
メソッド名を指定してオブジェクトのメソッドを呼び出します。
メソッド名を指定してオブジェクトのメソッドを呼び出します。
OLEオートメーションサーバのメソッドを動的に呼び出したい場合に利用します。
なお、OLEオートメーションの仕様により、メソッド名の大文字、小文字は区別
されません。
@param name メソッド名を文字列またはシンボルで指定します。
@param args メソッドの引数を指定します。また、最後の引数にHashを
与えることで、名前付き引数を指定できます。この場合、キーに
文字列またはシンボルでパラメータ名、値に引数を指定します。
@return メソッドの返り値。ただし返り... -
WIN32OLE
# method _ missing(id , *args) -> object | nil (27604.0) -
WIN32OLE#invokeメソッドを実行します。
WIN32OLE#invokeメソッドを実行します。
WIN32OLEのインスタンスに対して、このリファレンスに明記されていないメソッ
ドを呼び出した場合、OLEオートメーションサーバのメソッド(プロパティ)呼
び出しと解釈します。
@param id メソッド名をシンボルで指定します。
@param args メソッドの引数を指定します。
@return メソッドの返り値。ただし返り値を持たないメソッドの場合はnil。
@raise RuntimeError idが有効なシンボルではありません。
@raise WIN32OLERuntimeError オートメーションサーバの呼び出しに失... -
BigDecimal
# **(n) -> BigDecimal (27601.0) -
self の n 乗を計算します。
self の n 乗を計算します。
戻り値の有効桁数は self の有効桁数の n 倍以上になります。
@param n selfを other 乗する数を指定します。
@param prec 有効桁数を整数で指定します。 -
Enumerator
:: Yielder # yield(*object) -> () (27601.0) -
Enumerator.new で使うメソッドです。
Enumerator.new で使うメソッドです。
生成された Enumerator オブジェクトの each メソッドを呼ぶと
Enumerator::Yielder オブジェクトが渡されたブロックが実行され、
ブロック内の yield メソッドが呼ばれるたびに each に渡された
ブロックが yield メソッドに渡された値とともに繰り返されます。
//emlist[例][ruby]{
enum = Enumerator.new do |y|
y.yield 1, 2, 3
end
enum.each do |x, y, z|
p [x, y, z]
end
# => [... -
Find
. # find(*dirs , ignore _ error: true) -> Enumerator (27601.0) -
find(1) のように dir 配下のすべてのファイルや ディレクトリを一つずつ引数 file に渡してブロックを実行します。
find(1) のように dir 配下のすべてのファイルや
ディレクトリを一つずつ引数 file に渡してブロックを実行します。
ディレクトリのシンボリックリンクは辿りません。
また file に渡される順序は不定です。
ブロックを省略した場合は Enumerator を返します。
@param dirs 探索するディレクトリを一つ以上指定します。
@param ignore_error 探索中に発生した例外を無視するかどうかを指定します。
例:
require 'find'
Find.find('/tmp') {|f|
Find.prune if f ==... -
Find
. # find(*dirs , ignore _ error: true) {|file| . . . } -> nil (27601.0) -
find(1) のように dir 配下のすべてのファイルや ディレクトリを一つずつ引数 file に渡してブロックを実行します。
find(1) のように dir 配下のすべてのファイルや
ディレクトリを一つずつ引数 file に渡してブロックを実行します。
ディレクトリのシンボリックリンクは辿りません。
また file に渡される順序は不定です。
ブロックを省略した場合は Enumerator を返します。
@param dirs 探索するディレクトリを一つ以上指定します。
@param ignore_error 探索中に発生した例外を無視するかどうかを指定します。
例:
require 'find'
Find.find('/tmp') {|f|
Find.prune if f ==... -
Gem
:: SourceIndex # load _ gems _ in(*spec _ dirs) -> self (27601.0) -
引数で与えられたディレクトリに含まれる gemspec から自身を再構築して返します。
引数で与えられたディレクトリに含まれる gemspec から自身を再構築して返します。
@param spec_dirs gemspec の含まれているディレクトリを複数指定します。 -
Gem
:: UserInteraction # alert _ warning(*args) -> () (27601.0) -
WARNING レベルのアラートを出力します。
WARNING レベルのアラートを出力します。
@param args 委譲先のメソッドに与える引数です。 -
IRB
:: ExtendCommandBundle # irb _ load(*opts , &b) -> nil (27601.0) -
現在の irb に関する IRB::Context に対して irb_load コマンドを実行 します。
現在の irb に関する IRB::Context に対して irb_load コマンドを実行
します。
@see IRB::ExtendCommand::Load#execute -
Integer
# **(other) -> Numeric (27601.0) -
算術演算子。冪(べき乗)を計算します。
算術演算子。冪(べき乗)を計算します。
@param other 二項演算の右側の引数(対象)
@param modulo 指定すると、計算途中に巨大な値を生成せずに (self**other) % modulo と同じ結果を返します。
@return 計算結果
@raise TypeError 2引数 pow で Integer 以外を指定した場合に発生します。
@raise RangeError 2引数 pow で other に負の数を指定した場合に発生します。
//emlist[][ruby]{
2 ** 3 # => 8
2 ** 0 # => 1
0 ** 0 # => 1
... -
Matrix
# **(n) -> Matrix (27601.0) -
self の n 乗を返します。
self の n 乗を返します。
@param n べき数の指定
@raise ExceptionForMatrix::ErrNotRegular n が 0 以下で、行列が正則でない場合に発生します -
OpenSSL
:: Buffering # print(*args) -> nil (27601.0) -
args を順に出力します。
args を順に出力します。
args の各要素を to_s で文字列に変換して
出力します。
IO#print とほぼ同様ですが、引数を省略した場合に $_ を出力する
機能はありません。
@param args 出力するオブジェクト -
Rational
# **(other) -> Rational | Float (27601.0) -
冪(べき)乗を計算します。
冪(べき)乗を計算します。
@param other 自身を other 乗する数
other に Float を指定した場合は、計算結果を Float で返しま
す。other が有理数であっても、計算結果が無理数だった場合は Float
を返します。
//emlist[例][ruby]{
r = Rational(3, 4)
r ** Rational(2, 1) # => (9/16)
r ** 2 # => (9/16)
r ** 2.0 # => 0.5625
r ** Rational(1, 2) # => 0.866... -
Rational
# **(rhs) -> Numeric (27601.0) -
@todo
@todo
self のべき乗を返します。 Rational になるようであれば Rational で返します。 -
StringIO
# print(*obj) -> nil (27601.0) -
自身に引数を順に出力します。引数を省略した場合は、$_ を出力します。 引数の扱いは Kernel.#print を参照して下さい。
自身に引数を順に出力します。引数を省略した場合は、$_ を出力します。
引数の扱いは Kernel.#print を参照して下さい。
@param obj 書き込みたいオブジェクトを指定します。
@raise IOError 自身が書き込み用にオープンされていなければ発生します。
//emlist[例][ruby]{
require "stringio"
a = StringIO.new("", 'r+')
a.print("hoge", "bar", "foo")
a.string #=> "hogebarfoo"
//} -
Sync
_ m :: LockModeFailer . Fail(*options) -> () (27601.0) -
自身に定義されているメッセージをセットして例外を発生させます。
自身に定義されているメッセージをセットして例外を発生させます。 -
main
. include(*modules) -> self (27601.0) -
引数 modules で指定したモジュールを後ろから順番に Object にインクルードします。
引数 modules で指定したモジュールを後ろから順番に Object にインクルードします。
@param modules Module のインスタンス( Enumerable など)を指定します。
@raise ArgumentError 継承関係が循環してしまうような include を行った場
合に発生します。
//emlist[例:][ruby]{
include Math
hypot(3, 4) # => 5.0
//}
@see Module#include -
Win32
:: Registry # info (27445.0) -
@todo
@todo
キー情報を以下の値の配列で返します:
* num_keys
サブキーの個数
* max_key_length
サブキー名の最大長
* num_values
値の個数
* max_value_name_length
値の名前の最大長
* max_value_length
値の最大長
* descriptor_length
セキュリティ記述子の長さ
* wtime
最終更新時刻 (FILETIME)
詳細は以下の Win32 API を参照してください。
* RegQueryInfoKey: h... -
FileUtils
. # makedirs(list , options = {}) -> Array (27373.0) -
ディレクトリ dir とその親ディレクトリを全て作成します。
ディレクトリ dir とその親ディレクトリを全て作成します。
例えば、
//emlist[][ruby]{
require 'fileutils'
FileUtils.mkdir_p('/usr/local/lib/ruby')
//}
は以下の全ディレクトリを (なければ) 作成します。
* /usr
* /usr/local
* /usr/local/bin
* /usr/local/bin/ruby
@param list 作成するディレクトリ。一つの場合は文字列でも指定できます。
二つ以上指定する場合は配列で指定します。
@param... -
FileUtils
. # mkdir _ p(list , options = {}) -> Array (27373.0) -
ディレクトリ dir とその親ディレクトリを全て作成します。
ディレクトリ dir とその親ディレクトリを全て作成します。
例えば、
//emlist[][ruby]{
require 'fileutils'
FileUtils.mkdir_p('/usr/local/lib/ruby')
//}
は以下の全ディレクトリを (なければ) 作成します。
* /usr
* /usr/local
* /usr/local/bin
* /usr/local/bin/ruby
@param list 作成するディレクトリ。一つの場合は文字列でも指定できます。
二つ以上指定する場合は配列で指定します。
@param... -
Process
:: GID . # sid _ available? -> bool (27355.0) -
現在のプラットフォームが保存グループ ID を持つなら true を返します。 そうでない場合に false を返します。
現在のプラットフォームが保存グループ ID を持つなら true を返します。
そうでない場合に false を返します。
ただし、このメソッドの値には保証がありません。
現在は次の条件のいずれかが満足される場合には
保存グループ ID を持つものと判定しています。
* setresgid() を持つ
* setegid() を持つ
* _POSIX_SAVED_IDS が真として定義されている -
Process
:: UID . # sid _ available? -> bool (27355.0) -
保存ユーザ ID を持つ環境かどうかを真偽値で返します。 保存ユーザ ID を持つなら true を返します。
保存ユーザ ID を持つ環境かどうかを真偽値で返します。
保存ユーザ ID を持つなら true を返します。
ただし、このメソッドの値には保証がありません。
現在は次の条件のいずれかが満足される場合には
保存ユーザ ID を持つものと判定しています。
* setresuid() を持つ
* seteuid() を持つ
* _POSIX_SAVED_IDS が真として定義されている -
Fiddle
:: ALIGN _ VOIDP -> Integer (27349.0) -
C の構造体における void* のアライメントの値。
C の構造体における void* のアライメントの値。 -
Fiddle
:: TYPE _ VOIDP -> Integer (27349.0) -
C の void* 型を表す定数。
C の void* 型を表す定数。 -
Process
:: GID . # grant _ privilege(id) -> Integer (27337.0) -
現在のプロセスの実効グループ ID を id に変更します。成功したら id を返します。
現在のプロセスの実効グループ ID を id に変更します。成功したら id を返します。
実グループ ID は変更されないことが保証されます。
保存グループ ID が変更されないかもしれないので root 権限の完全放棄には使えません。
保存グループ ID が変化するかどうかは Process::GID.#re_exchangeable?
が true を返すかどうかで決まります。
* true の環境では、実グループ ID と異なる値を設定した場合、保存グループ ID は新しい実効グループ ID の値に設定されます。
* false の環境では保存グループ ID は変化しません。
... -
Process
:: UID . # grant _ privilege(id) -> Integer (27337.0) -
現在のプロセスの実効ユーザ ID を id に変更します。成功したら id を返します。
現在のプロセスの実効ユーザ ID を id に変更します。成功したら id を返します。
実ユーザ ID は変更されないことが保証されます。
保存ユーザ ID が変更されないかもしれないので root 権限の完全放棄には使えません。
保存ユーザ ID が変化するかどうかは Process::UID.#re_exchangeable?
が true を返すかどうかで決まります。
* true の環境では、実ユーザ ID と異なる値を設定した場合、保存ユーザ ID は新しい実効ユーザ ID の値に設定されます。
* false の環境では保存ユーザ ID は変化しません。
利用できるか... -
Readline
. emacs _ editing _ mode -> nil (27319.0) -
編集モードを Emacs モードにします。デフォルトは Emacs モードです。
編集モードを Emacs モードにします。デフォルトは Emacs モードです。
Emacs モードの詳細は、 GNU Readline のマニュアルを参照してください。
* http://www.gnu.org/directory/readline.html
@raise NotImplementedError サポートしていない環境で発生します。 -
Readline
. vi _ editing _ mode -> nil (27319.0) -
編集モードを vi モードにします。 vi モードの詳細は、GNU Readline のマニュアルを参照してください。
編集モードを vi モードにします。
vi モードの詳細は、GNU Readline のマニュアルを参照してください。
* http://www.gnu.org/directory/readline.html
@raise NotImplementedError サポートしていない環境で発生します。 -
main
. using(module) -> self (27319.0) -
引数で指定したモジュールで定義された拡張を有効にします。
引数で指定したモジュールで定義された拡張を有効にします。
有効にした拡張の有効範囲については以下を参照してください。
* https://docs.ruby-lang.org/en/master/syntax/refinements_rdoc.html#label-Scope
@param module 有効にするモジュールを指定します。
//emlist[例][ruby]{
module Sloth
refine String do
def downcase
self
end
end
end
"ABC".downcase # => "abc"... -
File
. utime(atime , mtime , *filename) -> Integer (19204.0) -
ファイルの最終アクセス時刻と更新時刻を変更します。
ファイルの最終アクセス時刻と更新時刻を変更します。
@param atime 最終アクセス時刻を Time か、起算時からの経過秒数を数値で指定します。
@param mtime 更新時刻を Time か、起算時からの経過秒数を数値で指定します。
@param filename ファイル名を表す文字列を指定します。複数指定できます。
@return 変更したファイルの数を返します。
@raise Errno::EXXX 変更に失敗した場合に発生します。
//emlist[例: Time を指定][ruby]{
atime = Time.new(2018, 1, 2, 3, 4, ... -
Shell
# utime(atime , mtime , *filename) -> Integer (19204.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@param atime 最終アクセス時刻を Time か、起算時からの経過秒数を数値で指定します。
@param utime 更新時刻を Time か、起算時からの経過秒数を数値で指定します。
@see File.utime -
Shell
:: CommandProcessor # utime(atime , mtime , *filename) -> Integer (19204.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@param atime 最終アクセス時刻を Time か、起算時からの経過秒数を数値で指定します。
@param utime 更新時刻を Time か、起算時からの経過秒数を数値で指定します。
@see File.utime -
Shell
:: Filter # utime(atime , mtime , *filename) -> Integer (19204.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@param atime 最終アクセス時刻を Time か、起算時からの経過秒数を数値で指定します。
@param utime 更新時刻を Time か、起算時からの経過秒数を数値で指定します。
@see File.utime -
VALUE rb
_ eval _ string _ protect(const char *str , int *state) (19201.0) -
str を Ruby プログラムとしてコンパイル・評価し、 その値を返します。
str を Ruby プログラムとしてコンパイル・評価し、
その値を返します。
コンパイル中または評価中に例外を含む大域脱出が発生した場合は、
state が NULL でなければそれに値が代入され Qnil を返します。 -
VALUE rb
_ eval _ string _ wrap(const char *str , int *state) (19201.0) -
rb_eval_string_protect と同じですが,スクリプトの評価を 無名のモジュールのもとで行います。
rb_eval_string_protect と同じですが,スクリプトの評価を
無名のモジュールのもとで行います。 -
char * rb
_ id2name(ID id) (19201.0) -
id に対応する文字列を返します。 返り値は開放できません。
id に対応する文字列を返します。
返り値は開放できません。 -
void rb
_ compile _ error _ with _ enc(const char *file , int line , void *enc , const char *fmt , . . . ) (19201.0) -
この関数は Ruby 2.3.0 から deprecated です。公開関数ですが内部利用のみを想 定しています。外部のライブラリで使用すべきではありません。
この関数は Ruby 2.3.0 から deprecated です。公開関数ですが内部利用のみを想
定しています。外部のライブラリで使用すべきではありません。 -
void rb
_ define _ method _ id(VALUE klass , ID name , VALUE (*func)() , int argc) (19201.0) -
klass に public メソッド name を定義します。 その実体は関数 func です。また argc の意味は rb_define_method と同じです。
klass に public メソッド name を定義します。
その実体は関数 func です。また argc の意味は
rb_define_method と同じです。 -
Date
. _ strptime(str , format = & # 39;%F& # 39;) -> Hash (19165.0) -
このメソッドは Date.strptime と似ていますが、日付オブジェクトを生成せずに、 見いだした要素をハッシュで返します。
このメソッドは Date.strptime と似ていますが、日付オブジェクトを生成せずに、
見いだした要素をハッシュで返します。
@param str 日付をあらわす文字列
@param format 書式文字列
書式文字列に使用できるものは以下の通りです。
* %A: 曜日の名称(Sunday, Monday ... )
* %a: 曜日の省略名(Sun, Mon ... )
* %B: 月の名称(January, February ... )
* %b: 月の省略名(Jan, Feb ... )
* %C: 世紀 (2009年であれば 20)
* %c: 日付... -
int st
_ insert(register st _ table *table , register char *key , char *value) (18997.0) -
ハッシュに key と value の組を追加する。 古いライブラリなので void* のかわりに char* を使っている。
ハッシュに key と value の組を追加する。
古いライブラリなので void* のかわりに char* を使っている。 -
OpenSSL
:: OCSP :: BasicResponse # sign(signer _ cert , signer _ key , certs = [] , flags=0) -> self (18955.0) -
Response に署名します。
Response に署名します。
OCSP レスポンダ(もしくは CA)はレスポンスに署名をすることで、
レスポンスの内容を保証します。
flags には以下の値の OR を渡すことができます。
* OpenSSL::OCSP::NOTIME
* OpenSSL::OCSP::RESPID_KEY
* OpenSSL::OCSP::NOCERTS
certs に証明書の配列を渡すことで、この署名を検証するために
必要となる別の証明書を付加することができます。
@param signer_cert 署名者の証明書(OpenSSL::X509::Certificate オブジェ... -
Process
. # setrlimit(resource , cur _ limit , max _ limit) -> nil (18955.0) -
カレントプロセスでのリソースの制限値を設定します。
カレントプロセスでのリソースの制限値を設定します。
@param resource リソースの種類を示す定数を指定します。指定できる定数はシステムに依存します。
@param limit resource によって意味が決まる制限値を表す整数もしくは定数を指定します。
soft limit と hard limit 両方にこの値が使われます。
@param cur_limit 現在の制限値(soft limit)を表す整数もしくは定数を指定します。
@param max_limit soft limit として設定可能な最大値(hard limit)を表す整... -
Pathname
# binread(*args) -> String | nil (18949.0) -
IO.binread(self.to_s, *args)と同じです。
IO.binread(self.to_s, *args)と同じです。
//emlist[例][ruby]{
require "pathname"
pathname = Pathname("testfile")
pathname.binread # => "This is line one\nThis is line two\nThis is line three\nAnd so on...\n"
pathname.binread(20) # => "This is line one\nThi"
pathname.binread(20, 10) # => ... -
Pathname
# binwrite(string , offset=nil) -> Integer (18949.0) -
IO.binwrite(self.to_s, *args)と同じです。
IO.binwrite(self.to_s, *args)と同じです。
@see IO.binwrite -
Pathname
# each _ line(*args) {|line| . . . } -> nil (18949.0) -
IO.foreach(self.to_s, *args, &block) と同じです。
IO.foreach(self.to_s, *args, &block) と同じです。
//emlist[例][ruby]{
require "pathname"
IO.write("testfile", "line1\nline2,\nline3\n")
Pathname("testfile").each_line
# => #<Enumerator: IO:foreach("testfile")>
//}
//emlist[例 ブロックを指定][ruby]{
require "pathname"
IO.write("testfile", "line1\nline2,\nline3\... -
Pathname
# readlines(*args) -> [String] (18949.0) -
IO.readlines(self.to_s, *args)と同じです。
IO.readlines(self.to_s, *args)と同じです。
@see IO.readlines -
st
_ table * st _ init _ strtable _ with _ size(int size) (18949.0) -
キーが char* 型であるハッシュテーブルを作成する。 st_init_table に文字列用の操作関数を渡しているだけ。
キーが char* 型であるハッシュテーブルを作成する。
st_init_table に文字列用の操作関数を渡しているだけ。 -
Enumerable
# each _ with _ index(*args) {|item , index| . . . } -> self (18937.0) -
要素とそのインデックスをブロックに渡して繰り返します。
要素とそのインデックスをブロックに渡して繰り返します。
ブロックを省略した場合は、
要素とそのインデックスを繰り返すような
Enumerator を返します。
Enumerator#with_index は offset 引数を受け取りますが、
each_with_index は受け取りません (引数はイテレータメソッドにそのまま渡されます)。
@param args イテレータメソッド (each など) にそのまま渡されます。
//emlist[例][ruby]{
[5, 10, 15].each_with_index do |n, idx|
p [n, idx]
end
#... -
Net
:: SMTP # send _ mail(mailsrc , from _ addr , *to _ addrs) -> () (18910.0) -
メールを送信します。
メールを送信します。
mailsrc をメールとして送信します。
mailsrc は each イテレータを持つ
オブジェクトならなんでも構いません(たとえば String や File)。
from_domain は送り主のメールアドレス ('...@...'のかたち) 、
to_addrs には送信先メールアドレスを文字列で渡します。
require 'net/smtp'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string,
... -
Net
:: SMTP # sendmail(mailsrc , from _ addr , *to _ addrs) -> () (18910.0) -
メールを送信します。
メールを送信します。
mailsrc をメールとして送信します。
mailsrc は each イテレータを持つ
オブジェクトならなんでも構いません(たとえば String や File)。
from_domain は送り主のメールアドレス ('...@...'のかたち) 、
to_addrs には送信先メールアドレスを文字列で渡します。
require 'net/smtp'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string,
... -
CGI
:: HtmlExtension # scrolling _ list(name = "" , *values) -> String (18907.0) -
select 要素を生成します。
select 要素を生成します。
@param name name 属性の値を指定します。
@param values option 要素を生成するための情報を一つ以上指定します。
それぞれ、文字列、一要素、二要素、三要素の配列を指定することができます。
文字列か一要素の配列である場合は、value 属性の値と option 要素の内容になります。
三要素の配列である場合は、順に value 属性の値、option 要素の内容、その option 要素が
選択状態かどうかを表す... -
Exception2MessageMapper
# Fail(exception _ class = nil , *rest) -> () (18907.0) -
登録されている情報を使用して、例外を発生させます。
登録されている情報を使用して、例外を発生させます。
@param exception_class 例外クラス。
@param rest メッセージに埋め込む値。
@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しない場合に発生します。
例:
class Foo
extend Exception2MessageMapper
p def_exception :NewExceptionClass, "message...%d, %d and %d" # =>... -
Exception2MessageMapper
. Fail(klass = E2MM , exception _ class = nil , *rest) -> () (18907.0) -
登録されている情報を使用して、例外を発生させます。
登録されている情報を使用して、例外を発生させます。
@param klass 一階層上となるクラス名を指定します。
@param exception_class 例外クラス。
@param rest メッセージに埋め込む値。
@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しない場合に発生します。 -
Shell
:: CommandProcessor . alias _ command(alias , command , *opts) -> self (18907.0) -
@todo
@todo
@param alias エイリアスの名前を指定します。
@param command コマンド名を指定します。
@param opts コマンドに与えるオプションを指定します。
@raise SyntaxError コマンドのエイリアス作成に失敗した時に発生します。 -
Shell
:: CommandProcessor . alias _ command(alias , command , *opts) { . . . } -> self (18907.0) -
@todo
@todo
@param alias エイリアスの名前を指定します。
@param command コマンド名を指定します。
@param opts コマンドに与えるオプションを指定します。
@raise SyntaxError コマンドのエイリアス作成に失敗した時に発生します。 -
Exception2MessageMapper
# fail(exception _ class = nil , *rest) -> () (18904.0) -
登録されている情報を使用して、例外を発生させます。
登録されている情報を使用して、例外を発生させます。
@param exception_class 例外クラス。
@param rest メッセージに埋め込む値。
@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しない場合に発生します。