種類
ライブラリ
- ビルトイン (6092)
- bigdecimal (33)
-
cgi
/ session (11) - continuation (11)
- coverage (7)
- csv (121)
- date (11)
- debug (11)
- delegate (154)
- digest (22)
- drb (121)
-
drb
/ extserv (22) -
drb
/ gw (11) -
drb
/ timeridconv (11) - e2mmap (6)
- erb (11)
- etc (22)
- fiber (8)
- fiddle (44)
- fileutils (24)
- gdbm (55)
-
io
/ console (33) -
io
/ nonblock (11) - ipaddr (22)
- irb (11)
-
irb
/ cmd / subirb (11) -
irb
/ context (66) -
irb
/ ext / save-history (11) -
irb
/ extend-command (66) -
irb
/ frame (11) -
irb
/ inspector (11) -
irb
/ magic-file (22) -
irb
/ output-method (33) -
irb
/ xmp (22) - json (297)
- matrix (55)
-
minitest
/ spec (16) -
minitest
/ unit (9) - mkmf (55)
- monitor (43)
-
mutex
_ m (55) -
net
/ ftp (22) -
net
/ http (66) -
net
/ imap (44) -
net
/ pop (143) -
net
/ smtp (78) - objspace (110)
- observer (11)
- open-uri (30)
- openssl (297)
- optparse (165)
- ostruct (81)
- pathname (22)
- pp (114)
- prettyprint (33)
- prime (110)
- profiler (6)
- pstore (55)
- psych (198)
- pty (22)
- rake (44)
-
rdoc
/ code _ object (154) -
rdoc
/ known _ classes (11) -
rdoc
/ markup (11) - resolv (22)
-
rexml
/ document (176) -
rexml
/ parsers / pullparser (22) -
rinda
/ tuplespace (11) -
ripper
/ filter (33) -
ripper
/ sexp (22) - rubygems (11)
-
rubygems
/ config _ file (22) -
rubygems
/ spec _ fetcher (22) -
rubygems
/ specification (22) -
rubygems
/ timer (11) - sdbm (33)
- set (33)
- shell (24)
-
shell
/ command-processor (6) -
shell
/ filter (18) -
shell
/ process-controller (6) - singleton (22)
- socket (374)
- stringio (44)
- strscan (44)
- sync (12)
- tempfile (55)
-
test
/ unit (1) - thread (12)
- timeout (41)
- tmpdir (22)
- tracer (22)
- uri (33)
- weakref (11)
-
webrick
/ cgi (11) -
webrick
/ httpauth / authenticator (11) -
webrick
/ httpauth / basicauth (11) -
webrick
/ server (11) - win32ole (902)
-
yaml
/ dbm (143) - zlib (99)
クラス
-
ARGF
. class (176) - Addrinfo (110)
- Array (733)
- BasicObject (154)
- BigDecimal (33)
- Binding (40)
-
CGI
:: Session (11) - CSV (66)
-
CSV
:: Row (33) -
CSV
:: Table (11) - Class (66)
- Complex (11)
- Coverage (7)
-
DRb
:: DRbIdConv (11) -
DRb
:: DRbObject (55) -
DRb
:: DRbServer (11) -
DRb
:: DRbUnknown (11) -
DRb
:: ExtServ (22) -
DRb
:: GW (11) -
DRb
:: TimerIdConv (11) - Data (6)
- Date (11)
- Delegator (110)
-
Digest
:: Base (11) - Dir (132)
- ERB (11)
- Enumerator (143)
-
Enumerator
:: Chain (18) -
Enumerator
:: Lazy (55) -
Enumerator
:: Yielder (22) - Fiber (48)
-
Fiddle
:: Closure :: BlockCaller (11) -
Fiddle
:: Pointer (11) - File (33)
- FrozenError (5)
- GDBM (55)
-
Gem
:: ConfigFile (22) -
Gem
:: SpecFetcher (22) -
Gem
:: Specification (22) - Hash (276)
- IO (374)
- IPAddr (22)
-
IRB
:: Context (66) -
IRB
:: ExtendCommand :: Kill (11) -
IRB
:: Frame (11) -
IRB
:: Inspector (11) -
IRB
:: OutputMethod (33) - Integer (25)
-
JSON
:: Parser (22) -
JSON
:: State (66) - KeyError (14)
- LocalJumpError (11)
- MatchData (11)
- Matrix (22)
- Method (84)
- Module (434)
- Monitor (10)
- Mutex (2)
- NameError (31)
-
Net
:: FTP (22) -
Net
:: HTTP (44) -
Net
:: HTTPGenericRequest (22) -
Net
:: IMAP (11) -
Net
:: IMAP :: FetchData (11) -
Net
:: IMAP :: ResponseCode (11) -
Net
:: IMAP :: UntaggedResponse (11) -
Net
:: POP3 (44) -
Net
:: POPMail (99) -
Net
:: SMTP (78) - NoMethodError (11)
- Numeric (11)
- Object (1106)
-
ObjectSpace
:: WeakMap (11) -
OpenSSL
:: ASN1 :: ASN1Data (11) -
OpenSSL
:: ASN1 :: ObjectId (88) -
OpenSSL
:: SSL :: SSLContext (11) -
OpenSSL
:: X509 :: Attribute (33) -
OpenSSL
:: X509 :: Name (88) - OpenStruct (81)
- OptionParser (132)
-
OptionParser
:: ParseError (11) - PP (55)
- PStore (44)
-
PStore
:: DummyMutex (11) - Pathname (22)
- PrettyPrint (33)
- Prime (44)
-
Prime
:: PseudoPrimeGenerator (44) - Proc (29)
-
Psych
:: Nodes :: Node (22) -
Psych
:: ScalarScanner (11) -
RDoc
:: CodeObject (154) -
RDoc
:: Markup (11) -
RDoc
:: Options (11) -
REXML
:: Attribute (11) -
REXML
:: DocType (11) -
REXML
:: Element (11) -
REXML
:: Elements (22) -
REXML
:: Parent (121) -
REXML
:: Parsers :: PullEvent (22) -
Rake
:: TaskArguments (22) - Random (33)
- Range (182)
- Rational (11)
- Regexp (33)
-
Resolv
:: DNS (22) -
Rinda
:: TupleEntry (11) - Ripper (22)
-
Ripper
:: Filter (33) -
RubyVM
:: InstructionSequence (11) - SDBM (33)
- Set (33)
- Shell (24)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (18) -
Shell
:: ProcessController (6) - SimpleDelegator (33)
- Socket (165)
- StopIteration (11)
- String (85)
- StringIO (44)
- StringScanner (44)
- Struct (98)
- Symbol (3)
- Tempfile (55)
- Thread (73)
-
Thread
:: Mutex (9) -
Thread
:: Queue (33) -
Thread
:: SizedQueue (33) - Time (11)
- TracePoint (82)
- Tracer (33)
- UNIXServer (44)
- UNIXSocket (55)
- UnboundMethod (21)
- UncaughtThrowError (20)
- Vector (33)
-
WEBrick
:: CGI (11) -
WEBrick
:: GenericServer (11) -
WEBrick
:: HTTPAuth :: BasicAuth (11) - WIN32OLE (110)
-
WIN32OLE
_ EVENT (11) -
WIN32OLE
_ METHOD (198) -
WIN32OLE
_ PARAM (77) -
WIN32OLE
_ TYPE (242) -
WIN32OLE
_ TYPELIB (132) -
WIN32OLE
_ VARIABLE (77) -
WIN32OLE
_ VARIANT (33) - WeakRef (11)
- XMP (11)
-
YAML
:: DBM (143) -
Zlib
:: GzipReader (44) -
Zlib
:: GzipWriter (55)
モジュール
- Comparable (13)
- DRb (22)
- Enumerable (712)
- Etc (22)
- Exception2MessageMapper (6)
- Fiddle (22)
- FileUtils (24)
- GC (24)
-
GC
:: Profiler (22) - Gem (11)
- IRB (11)
-
IRB
:: ContextExtender (22) -
IRB
:: ExtendCommandBundle (44) -
IRB
:: HistorySavingAbility (11) - JSON (143)
-
JSON
:: Generator :: GeneratorMethods :: Object (11) -
JSON
:: Generator :: GeneratorMethods :: String (22) - Kernel (638)
- Marshal (66)
-
MiniTest
:: Assertions (9) - MonitorMixin (22)
-
Mutex
_ m (44) - ObjectSpace (220)
- Observable (11)
-
OpenSSL
:: ASN1 (44) -
OpenSSL
:: X509 (11) -
OptionParser
:: Arguable (22) - PTY (22)
-
Process
:: GID (22) -
Process
:: UID (22) -
Profiler
_ _ (6) - Psych (102)
- RDoc (11)
-
Rake
:: Cloneable (22) - Singleton (11)
-
Sync
_ m (12) -
Test
:: Unit (1) - Timeout (19)
- URI (36)
-
WEBrick
:: HTTPAuth :: Authenticator (11)
オブジェクト
- ENV (14)
-
IRB
:: MagicFile (22) - main (33)
キーワード
- ! (11)
- != (11)
- !~ (11)
-
$ * (11) -
$ -K (4) -
$ -i (11) -
$ . (11) -
$ < (11) -
$ > (11) -
$ FILENAME (11) -
$ KCODE (4) -
$ SAFE (4) -
$ _ (11) -
$ stderr (11) -
$ stdin (11) -
$ stdout (11) - % (11)
- & (11)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - < (11)
- << (33)
- <= (11)
- <=> (33)
- == (68)
- === (51)
- =~ (9)
- > (11)
- >= (11)
- ARGF (22)
- ARGV (22)
- Array (11)
-
BUILD
_ RUBY _ PLATFORM (11) - CSV (11)
- Converters (11)
- DATA (11)
-
DEFAULT
_ OBJECT _ TYPE (11) -
DEFAULT
_ PARAMS (11) - DRbProtocol (11)
- DelegateClass (11)
- Digest (11)
- ENV (11)
- FALSE (8)
- Float (11)
- HeaderConverters (11)
- Id (11)
- Integer (11)
- JSON (11)
-
KNOWN
_ CLASSES (11) -
MAJOR
_ VERSION (11) -
MINOR
_ VERSION (11) - Marshal フォーマット (11)
- MonitorMixin (11)
-
Mutex
_ m (11) -
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) - NIL (8)
-
OBJECT
_ DESCRIPTOR (11) -
OBJECT
_ TYPE _ TEMPLATE (11) - ObjectId (33)
- Options (11)
-
RUBY
_ COPYRIGHT (11) -
RUBY
_ DESCRIPTION (11) -
RUBY
_ ENGINE (11) -
RUBY
_ ENGINE _ VERSION (9) -
RUBY
_ PATCHLEVEL (11) -
RUBY
_ PLATFORM (11) -
RUBY
_ RELEASE _ DATE (11) -
RUBY
_ REVISION (11) -
RUBY
_ VERSION (11) - Rational (11)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (11)
- Rubyの起動 (11)
- Ruby用語集 (11)
-
SCRIPT
_ LINES _ _ (11) -
SC
_ SHARED _ MEMORY _ OBJECTS (11) -
SC
_ TYPED _ MEMORY _ OBJECTS (11) - STDERR (11)
- STDIN (11)
- STDOUT (11)
- Singleton (11)
- String (11)
-
TOPLEVEL
_ BINDING (11) - TRUE (8)
-
TRUST
_ OBJECT _ SIGN (11) - Thread (11)
- URI (11)
- Version (11)
-
WIN32OLE
_ TYPE (11) -
WIN32OLE
_ TYPELIB (11) - [] (275)
- []= (22)
-
_ _ drbref (11) -
_ _ drburi (11) -
_ _ getobj _ _ (33) -
_ _ id _ _ (11) -
_ _ send _ _ (22) -
_ _ setobj _ _ (22) -
_ dump (11) -
_ getproperty (11) -
_ id2ref (11) -
_ invoke (11) -
_ load (11) - add (11)
- all (33)
- allocate (11)
-
allocation
_ sourcefile (11) -
allocation
_ sourceline (11) - ancestors (11)
-
arg
_ config (11) - args (11)
- argv (11)
-
array
_ attributes (11) -
assert
_ empty (1) -
assert
_ equal (1) -
assert
_ includes (1) -
assert
_ instance _ of (1) -
assert
_ kind _ of (1) -
assert
_ nil (1) -
assert
_ respond _ to (1) -
assert
_ same (1) - at (11)
- attr (11)
- begin (11)
- bind (22)
-
bind
_ call (10) - binding (11)
-
body
_ stream (11) -
body
_ stream= (11) - bsearch (44)
- call (33)
- callcc (11)
- catch (22)
- cd (12)
- chdir (56)
- clamp (24)
- class (11)
-
class
_ eval (22) -
class
_ exec (11) -
class
_ variable _ get (11) -
class
_ variable _ set (11) -
class
_ variables (11) - clone (55)
-
cofactor
_ expansion (11) - collect (55)
- comment (11)
-
compare
_ by _ identity (11) - component (11)
- config (11)
- connect (33)
-
connect
_ from (22) -
connect
_ nonblock (11) -
connect
_ to (22) -
const
_ defined? (11) -
const
_ get (11) -
const
_ load (11) -
const
_ set (11) -
const
_ source _ location (5) - constants (22)
- context (22)
- convert (11)
- cooked (11)
-
count
_ nodes (11) -
count
_ objects (11) -
count
_ objects _ size (11) -
count
_ tdata _ objects (11) - create (22)
-
create
_ id (11) - cycle (22)
- data (22)
- debug (11)
-
def
_ class (11) -
def
_ extend _ command (22) -
def
_ inspector (11) - default (33)
-
default
_ event _ sources (11) -
default
_ ole _ types (11) -
default
_ value (11) -
define
_ finalizer (22) -
define
_ method (22) -
define
_ singleton _ method (22) - delete (121)
-
delete
_ at (11) -
delete
_ field (11) -
delete
_ if (22) -
delete
_ observer (11) -
deprecate
_ constant (9) - deq (22)
- detect (22)
- difference (6)
- dig (36)
- disable (22)
- dispid (11)
- display (11)
- dlunwrap (11)
-
document
_ children (11) -
document
_ self (11) - documented? (11)
- drb (11)
- dump (55)
-
dump
_ stream (11) - dup (47)
- each (188)
-
each
_ active _ object (6) -
each
_ byte (22) -
each
_ char (22) -
each
_ child (22) -
each
_ line (44) -
each
_ object (44) -
each
_ prime (22) -
each
_ with _ object (22) - element (11)
- enable (22)
- end (11)
- entries (11)
-
enum
_ for (44) - eql? (68)
- equal? (33)
- eval (44)
- evaluate (11)
- event? (11)
-
event
_ interface (11) - exclusive (11)
- execute (11)
- exit (11)
-
exit
_ value (11) - extend (11)
-
extend
_ object (39) - extended (22)
-
fast
_ generate (11) -
fast
_ unparse (11) - feed (11)
- fetch (128)
-
fetch
_ spec (11) -
fetch
_ values (18) - field (11)
- file (11)
- fill (66)
- filter (36)
-
filter
_ map (10) - find (22)
-
find
_ all (22) - first (66)
-
for
_ fd (11) - force (11)
- format (22)
- freeze (33)
- front (33)
- frozen? (11)
-
garbage
_ collect (11) - generate (33)
- getbyte (11)
- getc (11)
- gets (11)
-
global
_ variables (11) - grep (22)
-
grep
_ v (22) - guid (22)
-
handle
_ interrupt (11) - handler (11)
- hash (46)
- helpcontext (22)
- helpfile (22)
-
implemented
_ ole _ types (11) - include (22)
- index (7)
- initialize (11)
-
initialize
_ copy (11) - inject (44)
- input? (11)
- inspect (72)
-
inspect
_ mode (11) -
install
_ extend _ commands (22) - instance (33)
-
instance
_ eval (22) -
instance
_ exec (11) -
instance
_ method (11) -
instance
_ methods (11) -
instance
_ of? (11) -
instance
_ variable _ defined? (11) -
instance
_ variable _ get (11) -
instance
_ variable _ set (11) -
instance
_ variables (11) - intersection (5)
- invert (11)
- invkind (11)
- invoke (11)
-
invoke
_ kind (11) - irb (19)
-
irb
/ completion (11) -
irb
/ ext / math-mode (4) -
irb
_ exit (22) -
is
_ a? (11) - itself (11)
- j (11)
- jj (11)
- join (11)
- key (18)
- keys (11)
-
kind
_ of? (11) - lambda (13)
-
laplace
_ expansion (11) - last (44)
-
last
_ value (11) -
latest
_ gc _ info (22) -
library
_ name (11) - listen (22)
- ln (11)
- load (33)
-
load
_ documents (8) -
load
_ file (22) -
load
_ specs (11) -
load
_ stream (22) -
local
_ variable _ get (11) -
local
_ variables (11) - logger (22)
-
long
_ name (11) - lookup (11)
- loop (22)
- mail (33)
- main (22)
-
major
_ version (22) - map (44)
-
marshal
_ dump (22) -
marshal
_ load (22) - match (44)
- max (118)
-
max
_ by (44) -
memsize
_ of (11) -
memsize
_ of _ all (11) - method (11)
-
method
_ missing (33) - methods (22)
- min (118)
-
min
_ by (44) - minmax (42)
-
minmax
_ by (22) -
minor
_ version (22) - mktmpdir (22)
- modifiable (11)
-
module
_ eval (22) -
module
_ exec (11) -
mon
_ synchronize (16) -
mu
_ extended (11) -
mu
_ pp (1) -
mu
_ synchronize (11) -
must
_ be (1) -
must
_ be _ close _ to (1) -
must
_ be _ empty (1) -
must
_ be _ instance _ of (1) -
must
_ be _ kind _ of (1) -
must
_ be _ nil (1) -
must
_ be _ same _ as (1) -
must
_ be _ within _ delta (1) -
must
_ be _ within _ epsilon (1) -
must
_ equal (1) -
must
_ include (1) -
must
_ match (1) -
must
_ raise (1) -
must
_ respond _ to (1) -
must
_ send (1) -
must
_ throw (1) - name (66)
-
net
/ smtp (11) - new (392)
-
new
_ with _ uri (11) - next (11)
-
next
_ values (11) - nil? (11)
- noecho (11)
- nonblock (11)
-
object
_ group (11) -
object
_ id (11) -
object
_ nl (11) -
offset
_ vtbl (11) - oid (22)
-
ole
_ classes (22) -
ole
_ methods (11) -
ole
_ type (33) -
ole
_ type _ detail (11) -
ole
_ typelib (22) -
ole
_ types (11) - on (132)
-
on
_ XXX (11) -
on
_ default (11) - open (426)
- optional? (11)
- output (11)
- p (11)
- parameters (39)
- params (11)
- parent (11)
-
parent
_ file _ name (11) -
parent
_ name (11) - parse (55)
- parse! (11)
-
parse
_ openssl (11) -
parse
_ rfc2253 (11) - partition (22)
- path (11)
- peek (11)
-
peek
_ values (11) -
pending
_ interrupt? (11) - pipe (88)
- pop (77)
- popen (154)
- pp (44)
- ppx (11)
-
pretty
_ generate (11) -
pretty
_ inspect (11) -
pretty
_ print (11) -
pretty
_ print _ cycle (11) -
pretty
_ print _ inspect (11) -
pretty
_ print _ instance _ variables (11) -
pretty
_ unparse (11) -
private
_ constant (9) -
private
_ instance _ methods (11) -
private
_ methods (11) - proc (14)
- progid (11)
-
protected
_ instance _ methods (11) -
protected
_ methods (22) -
psych
_ to _ yaml (11) -
psych
_ y (11) -
psych
_ yaml _ as (4) - public (23)
-
public
_ constant (9) -
public
_ instance _ method (11) -
public
_ instance _ methods (11) -
public
_ method (11) -
public
_ methods (22) -
public
_ send (22) - push (11)
- pushd (6)
- pushdir (6)
- putc (55)
- puts (11)
- raise (15)
- rand (33)
- raw (11)
-
rcptto
_ list (11) - rdoc (11)
-
reachable
_ objects _ from (11) -
read
_ nonblock (11) - readline (11)
- receiver (42)
-
recv
_ io (11) - reduce (33)
- register (11)
- rehash (11)
- reject (55)
- reload (11)
-
remove
_ class _ variable (11) -
remove
_ classes _ and _ modules (11) -
remove
_ const (11) -
remove
_ instance _ variable (11) -
remove
_ methods _ etc (11) - replace (11)
- report (11)
-
require
_ relative (11) -
respond
_ to? (22) -
respond
_ to _ missing? (11) - responses (11)
- restore (22)
- result (22)
- resume (11)
-
return
_ type (11) -
return
_ type _ detail (11) -
return
_ value (11) -
return
_ vtype (11) - rewind (6)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
safe
_ load (17) - sample (44)
-
save
_ exception _ mode (11) -
save
_ limit (11) -
save
_ rounding _ mode (11) -
scan
_ full (11) -
search
_ full (11) - section (11)
- select (88)
- self (11)
- send (22)
- sender (11)
-
set
_ last _ value (11) -
setup
_ argv (1) - sexp (11)
-
sexp
_ raw (11) -
sharing
_ detection (11) - shift (66)
-
short
_ name (11) -
singleline
_ format (11) -
singleline
_ pp (11) -
singleton
_ class (11) -
singleton
_ method (11) -
singleton
_ method _ added (11) -
singleton
_ method _ removed (11) -
singleton
_ method _ undefined (11) -
singleton
_ methods (11) -
size
_ opt _ params (11) -
size
_ params (11) - slice (33)
- slice! (33)
- sn (11)
- sort (22)
-
sort
_ by (22) -
source
_ ole _ types (11) - sprintf (11)
- sprintf フォーマット (11)
-
src
_ type (11) - start (151)
-
start
_ doc (11) -
start
_ profile (6) - stat (12)
- stdout (11)
-
stop
_ doc (11) - store (22)
- string (11)
- sum (38)
- superclass (11)
- switch (44)
-
sync
_ synchronize (6) - synchronize (55)
- tag (10)
- taint (9)
- tainted? (9)
- tally (8)
- tap (11)
- tcp (22)
-
tcp
_ server _ sockets (44) - then (12)
-
thread
_ variable _ get (11) - throw (11)
- time (11)
- timeout (41)
-
to
_ a (44) -
to
_ ary (11) -
to
_ enum (44) -
to
_ h (28) -
to
_ hash (33) -
to
_ int (11) -
to
_ io (11) -
to
_ json (11) -
to
_ json _ raw (11) -
to
_ json _ raw _ object (11) -
to
_ obj (22) -
to
_ proc (14) -
to
_ regexp (11) -
to
_ ruby (11) -
to
_ s (99) -
to
_ str (11) -
to
_ value (11) -
to
_ yaml (11) - tokenize (11)
-
trace
_ func (22) -
trace
_ object _ allocations _ start (11) -
trace
_ object _ allocations _ stop (11) - transact (18)
- transaction (11)
- transfer (11)
- transform (11)
- trust (9)
-
try
_ convert (14) - typekind (11)
-
udp
_ server _ sockets (44) - umask (6)
-
undefine
_ finalizer (11) - union (6)
- uniq (22)
- uniq! (22)
- unix (22)
-
unix
_ server _ socket (22) - unpack1 (8)
- unparse (11)
- unshift (11)
- untaint (9)
- untrust (9)
- untrusted? (9)
-
used
_ modules (8) - value (54)
- values (33)
-
values
_ at (33) -
variable
_ kind (11) - variables (11)
- varkind (11)
- version (11)
- visible? (44)
-
win
_ platform? (11) -
with
_ index (22) -
with
_ object (44) -
with
_ werror (22) - wrap (44)
- write (11)
-
write
_ nonblock (11) - xmp (11)
- xpopen (22)
- y (11)
- yaml (11)
-
yaml
_ as (4) -
yaml
_ tag (11) - yield (22)
-
yield
_ self (14) - zip (44)
- | (17)
- オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (11)
- クラス/メソッドの定義 (11)
- スレッド (11)
- セキュリティモデル (11)
- メソッド呼び出し(super・ブロック付き・yield) (11)
- 変数と定数 (11)
検索結果
先頭5件
-
OpenSSL
:: ASN1 :: OBJECT -> Integer (18217.0) -
ASN.1 UNIVERSAL タグの、 OBJECT のタグ番号 6 を表す定数です。
...ASN.1 UNIVERSAL タグの、
OBJECT のタグ番号 6 を表す定数です。... -
Array
# -(other) -> Array (18118.0) -
自身から other の要素を取り除いた配列を生成して返します。
...自身から other の要素を取り除いた配列を生成して返します。
要素の同一性は Object#eql? により評価されます。
self 中で重複していて、other中に存在していなかった要素は、その重複が保持されます。
@param other 自身から取......換を試みます。
@raise TypeError 引数に配列以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby]{
[1, 2, 1, 3, 1, 4] - [4, 2] # => [1, 1, 3, 1]
[1, 2, 1, 3, 1, 4] - [1, 4] # => [2, 3]
//}......@raise TypeError 引数に配列以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby]{
[1, 2, 1, 3, 1, 4] - [4, 2] # => [1, 1, 3, 1]
[1, 2, 1, 3, 1, 4] - [1, 4] # => [2, 3]
//}
@see Array#difference... -
Object
# object _ id -> Integer (15279.0) -
各オブジェクトに対して一意な整数を返します。あるオブジェクトに対し てどのような整数が割り当てられるかは不定です。
...られるかは不定です。
Rubyでは、(Garbage Collectされていない)アクティブなオブジェクト間で
重複しない整数(object_id)が各オブジェクトにひとつずつ割り当てられています。この
メソッドはその値を返します。
TrueClass, FalseCla......じ object_id になります。
これは、Immutable ならば複数の場所から参照されても`破壊的操作'による問題が発生しないので、
同じ内容のインスタンスを複数生成しないという内部実装が理由です。
//emlist[][ruby]{
p "ruby".object_id #......=> 60
p "ruby".object_id #=> 80
p [].object_id #=> 100
p [].object_id #=> 120
p :ruby.object_id #=> 710428
p :ruby.object_id #=> 710428
p 11.object_id #=> 23
p 11.object_id #=> 23
p true.object_id #=> 20
p true.object_id #=> 20
//}
@see Object#equal?,Symbol... -
ObjectSpace
. # each _ object {|object| . . . } -> Integer (9352.0) -
指定された klass と Object#kind_of? の関係にある全ての オブジェクトに対して繰り返します。引数が省略された時には全てのオブ ジェクトに対して繰り返します。 繰り返した数を返します。
...指定された klass と Object#kind_of? の関係にある全ての
オブジェクトに対して繰り返します。引数が省略された時には全てのオブ
ジェクトに対して繰り返します。
繰り返した数を返します。
ブロックが与えられなかった場合......emlist[例: ブロックなし][ruby]{
p ObjectSpace.each_object
# => #<Enumerator: ObjectSpace:each_object(false)>
//}
//emlist[例: 全てのオブジェクトを扱う][ruby]{
ObjectSpace.each_object.take(5).each { |x| p x }
count = ObjectSpace.each_object { |x| x }
puts "Total count: #{count}"......}
//emlist[例: 任意のクラスを扱う][ruby]{
Person = Struct.new(:name)
s1 = Person.new("tanaka")
s2 = Person.new("sato")
count = ObjectSpace.each_object(Person) { |x| p x }
puts "Total count: #{count}"
# => #<struct Person name="sato">
# => #<struct Person name="tanaka">
# => Total count:... -
ObjectSpace
. # each _ object(klass) {|object| . . . } -> Integer (9352.0) -
指定された klass と Object#kind_of? の関係にある全ての オブジェクトに対して繰り返します。引数が省略された時には全てのオブ ジェクトに対して繰り返します。 繰り返した数を返します。
...指定された klass と Object#kind_of? の関係にある全ての
オブジェクトに対して繰り返します。引数が省略された時には全てのオブ
ジェクトに対して繰り返します。
繰り返した数を返します。
ブロックが与えられなかった場合......emlist[例: ブロックなし][ruby]{
p ObjectSpace.each_object
# => #<Enumerator: ObjectSpace:each_object(false)>
//}
//emlist[例: 全てのオブジェクトを扱う][ruby]{
ObjectSpace.each_object.take(5).each { |x| p x }
count = ObjectSpace.each_object { |x| x }
puts "Total count: #{count}"......}
//emlist[例: 任意のクラスを扱う][ruby]{
Person = Struct.new(:name)
s1 = Person.new("tanaka")
s2 = Person.new("sato")
count = ObjectSpace.each_object(Person) { |x| p x }
puts "Total count: #{count}"
# => #<struct Person name="sato">
# => #<struct Person name="tanaka">
# => Total count:... -
Object
# initialize _ copy(obj) -> object (9261.0) -
(拡張ライブラリによる) ユーザ定義クラスのオブジェクトコピーの初期化メソッド。
...は self を obj の内容で置き換えます。ただ
し、self のインスタンス変数や特異メソッドは変化しません。
Object#clone, Object#dupの内部で使われています。
initialize_copy は、Ruby インタプリタが知り得ない情報をコピーするた
めに......alize_copy でコピーするよう定義しておくことで、dup や clone
を再定義する必要がなくなります。
デフォルトの Object#initialize_copy は、 freeze チェックおよび型のチェックを行い self
を返すだけのメソッドです。
initialize_copy と......Error レシーバが freeze されているか、obj のクラスがレシーバ
のクラスと異なる場合に発生します。
@see Object#clone,Object#dup
以下に例として、dup や clone がこのメソッドをどのように利用しているかを示します。
obj.dup は、... -
ObjectSpace
. # each _ object -> Enumerator (9252.0) -
指定された klass と Object#kind_of? の関係にある全ての オブジェクトに対して繰り返します。引数が省略された時には全てのオブ ジェクトに対して繰り返します。 繰り返した数を返します。
...指定された klass と Object#kind_of? の関係にある全ての
オブジェクトに対して繰り返します。引数が省略された時には全てのオブ
ジェクトに対して繰り返します。
繰り返した数を返します。
ブロックが与えられなかった場合......emlist[例: ブロックなし][ruby]{
p ObjectSpace.each_object
# => #<Enumerator: ObjectSpace:each_object(false)>
//}
//emlist[例: 全てのオブジェクトを扱う][ruby]{
ObjectSpace.each_object.take(5).each { |x| p x }
count = ObjectSpace.each_object { |x| x }
puts "Total count: #{count}"......}
//emlist[例: 任意のクラスを扱う][ruby]{
Person = Struct.new(:name)
s1 = Person.new("tanaka")
s2 = Person.new("sato")
count = ObjectSpace.each_object(Person) { |x| p x }
puts "Total count: #{count}"
# => #<struct Person name="sato">
# => #<struct Person name="tanaka">
# => Total count:... -
ObjectSpace
. # each _ object(klass) -> Enumerator (9252.0) -
指定された klass と Object#kind_of? の関係にある全ての オブジェクトに対して繰り返します。引数が省略された時には全てのオブ ジェクトに対して繰り返します。 繰り返した数を返します。
...指定された klass と Object#kind_of? の関係にある全ての
オブジェクトに対して繰り返します。引数が省略された時には全てのオブ
ジェクトに対して繰り返します。
繰り返した数を返します。
ブロックが与えられなかった場合......emlist[例: ブロックなし][ruby]{
p ObjectSpace.each_object
# => #<Enumerator: ObjectSpace:each_object(false)>
//}
//emlist[例: 全てのオブジェクトを扱う][ruby]{
ObjectSpace.each_object.take(5).each { |x| p x }
count = ObjectSpace.each_object { |x| x }
puts "Total count: #{count}"......}
//emlist[例: 任意のクラスを扱う][ruby]{
Person = Struct.new(:name)
s1 = Person.new("tanaka")
s2 = Person.new("sato")
count = ObjectSpace.each_object(Person) { |x| p x }
puts "Total count: #{count}"
# => #<struct Person name="sato">
# => #<struct Person name="tanaka">
# => Total count:... -
Object
. new -> Object (9229.0) -
Objectクラスのインスタンスを生成して返します。
...
Objectクラスのインスタンスを生成して返します。
//emlist[][ruby]{
some = Object.new
p some #=> #<Object:0x2b696d8>
//}... -
Object
# send(name , *args) -> object (9226.0) -
オブジェクトのメソッド name を args を引数に して呼び出し、メソッドの実行結果を返します。
...ドだけ呼び出せれば良い場合は
Object#public_send を使う方が良いでしょう。
@param name 文字列かSymbol で指定するメソッド名です。
@param args 呼び出すメソッドに渡す引数です。
//emlist[][ruby]{
p -365.send(:abs) #=> 365
p "ruby".send(:sub,/./,......ーバは任意(Foo クラスのインスタンスである必要もない)
p Foo.new.send(methods[1]) # => "foo"
p Foo.new.send(methods[2]) # => "bar"
p Foo.new.send(methods[3]) # => "baz"
//}
@see Object#public_send, BasicObject#__send__, Object#method, Kernel.#eval, Proc, Method...