ライブラリ
- ビルトイン (5045)
- bigdecimal (36)
-
cgi
/ session (12) - csv (51)
- date (12)
- delegate (156)
- digest (12)
- drb (84)
-
drb
/ extserv (12) -
drb
/ gw (12) -
drb
/ timeridconv (12) - erb (12)
- fiber (8)
- fiddle (24)
- gdbm (36)
-
io
/ console (36) -
io
/ nonblock (12) - ipaddr (24)
-
irb
/ cmd / subirb (12) -
irb
/ context (72) -
irb
/ extend-command (12) -
irb
/ output-method (36) -
irb
/ xmp (12) - json (156)
- matrix (60)
-
minitest
/ spec (16) -
minitest
/ unit (9) - mkmf (84)
- monitor (36)
-
mutex
_ m (36) -
net
/ http (48) -
net
/ imap (48) -
net
/ pop (132) -
net
/ smtp (56) - observer (12)
- openssl (132)
- optparse (180)
- ostruct (89)
- pathname (24)
- pp (84)
- prettyprint (12)
- prime (72)
- pstore (60)
- psych (116)
- rake (48)
-
rdoc
/ code _ object (216) -
rdoc
/ markup (12) -
rexml
/ document (192) -
rexml
/ parsers / pullparser (24) -
rinda
/ rinda (12) -
rinda
/ tuplespace (12) -
ripper
/ filter (36) -
rubygems
/ config _ file (24) -
rubygems
/ spec _ fetcher (24) -
rubygems
/ timer (12) - sdbm (12)
- set (27)
- shell (24)
-
shell
/ command-processor (6) -
shell
/ filter (18) - socket (144)
- stringio (12)
- strscan (24)
- sync (12)
- thread (12)
- timeout (16)
- tracer (12)
- weakref (12)
-
webrick
/ cgi (12) -
webrick
/ httpauth / authenticator (12) -
webrick
/ httpauth / basicauth (12) -
webrick
/ server (12) - win32ole (864)
-
yaml
/ dbm (156) - zlib (12)
クラス
-
ARGF
. class (192) - Addrinfo (120)
- Array (806)
- BasicObject (168)
- BigDecimal (36)
- Binding (44)
-
CGI
:: Session (12) -
CSV
:: Row (39) -
CSV
:: Table (12) - Class (48)
- Complex (12)
-
DRb
:: DRbIdConv (12) -
DRb
:: DRbObject (48) -
DRb
:: DRbServer (12) -
DRb
:: DRbUnknown (12) -
DRb
:: ExtServ (12) -
DRb
:: GW (12) -
DRb
:: TimerIdConv (12) - Data (12)
- Date (12)
- Delegator (120)
- ERB (12)
- Enumerator (156)
-
Enumerator
:: Chain (21) -
Enumerator
:: Lazy (60) -
Enumerator
:: Yielder (24) - Fiber (42)
-
Fiddle
:: Closure :: BlockCaller (12) -
Fiddle
:: Pointer (12) - FrozenError (6)
- GDBM (36)
-
Gem
:: ConfigFile (24) -
Gem
:: SpecFetcher (24) - Hash (289)
- IO (96)
- IPAddr (24)
-
IRB
:: Context (72) -
IRB
:: ExtendCommand :: Kill (12) -
IRB
:: OutputMethod (36) -
JSON
:: Parser (12) -
JSON
:: State (72) - KeyError (16)
- LocalJumpError (12)
- MatchData (12)
- Matrix (24)
- Method (92)
- Module (482)
- Monitor (12)
- Mutex (2)
- NameError (34)
-
Net
:: HTTP (24) -
Net
:: HTTPGenericRequest (24) -
Net
:: IMAP (12) -
Net
:: IMAP :: FetchData (12) -
Net
:: IMAP :: ResponseCode (12) -
Net
:: IMAP :: UntaggedResponse (12) -
Net
:: POP3 (24) -
Net
:: POPMail (108) -
Net
:: SMTP (56) - NoMethodError (12)
- Numeric (12)
- Object (961)
-
ObjectSpace
:: WeakMap (24) -
OpenSSL
:: ASN1 :: ASN1Data (12) -
OpenSSL
:: ASN1 :: ObjectId (60) -
OpenSSL
:: X509 :: Attribute (24) -
OpenSSL
:: X509 :: Name (12) -
OpenSSL
:: X509 :: Store (12) -
OpenSSL
:: X509 :: StoreContext (12) - OpenStruct (89)
- OptionParser (144)
-
OptionParser
:: ParseError (12) - PP (24)
- PStore (48)
-
PStore
:: DummyMutex (12) - Pathname (24)
- PrettyPrint (12)
- Prime (24)
-
Prime
:: PseudoPrimeGenerator (48) - Proc (12)
-
Psych
:: Nodes :: Node (24) -
Psych
:: ScalarScanner (12) -
Psych
:: Visitors :: YAMLTree (24) -
RDoc
:: CodeObject (216) -
RDoc
:: Markup (12) -
RDoc
:: Options (12) -
REXML
:: Attribute (12) -
REXML
:: DocType (12) -
REXML
:: Element (12) -
REXML
:: Elements (24) -
REXML
:: Parent (132) -
REXML
:: Parsers :: PullEvent (24) -
Rake
:: TaskArguments (24) - Random (36)
- Range (200)
- Rational (12)
- Regexp (36)
-
Rinda
:: DRbObjectTemplate (12) -
Rinda
:: TupleEntry (12) -
Ripper
:: Filter (36) -
RubyVM
:: InstructionSequence (12) - SDBM (12)
- Set (36)
- Shell (24)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (18) - SimpleDelegator (24)
- Socket (12)
- StopIteration (12)
- String (81)
- StringIO (12)
- StringScanner (24)
- Struct (114)
- Symbol (4)
- Thread (44)
-
Thread
:: Mutex (10) -
Thread
:: Queue (36) -
Thread
:: SizedQueue (36) - Time (12)
- TracePoint (79)
- Tracer (12)
- UNIXSocket (12)
- UnboundMethod (24)
- UncaughtThrowError (22)
- Vector (36)
-
WEBrick
:: CGI (12) -
WEBrick
:: GenericServer (12) -
WEBrick
:: HTTPAuth :: BasicAuth (12) - WIN32OLE (72)
-
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ METHOD (204) -
WIN32OLE
_ PARAM (84) -
WIN32OLE
_ TYPE (240) -
WIN32OLE
_ TYPELIB (132) -
WIN32OLE
_ VARIABLE (84) -
WIN32OLE
_ VARIANT (36) - WeakRef (12)
-
YAML
:: DBM (156) -
Zlib
:: GzipWriter (12)
モジュール
- Comparable (15)
- Enumerable (780)
-
IRB
:: ExtendCommandBundle (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (24) - Kernel (208)
-
MiniTest
:: Assertions (9) - MonitorMixin (24)
-
Mutex
_ m (36) - Observable (12)
-
OptionParser
:: Arguable (24) -
Rake
:: Cloneable (24) -
Sync
_ m (12) -
WEBrick
:: HTTPAuth :: Authenticator (12)
キーワード
- ! (12)
- != (12)
- !~ (12)
- % (12)
- & (12)
- - (12)
- < (12)
- << (48)
- <= (12)
- <=> (36)
- == (75)
- === (68)
- =~ (9)
- > (12)
- >= (12)
- DelegateClass (12)
- Digest (12)
- JSON (12)
- [] (288)
- []= (48)
-
_ _ drbref (12) -
_ _ drburi (12) -
_ _ getobj _ _ (36) -
_ _ id _ _ (12) -
_ _ send _ _ (24) -
_ _ setobj _ _ (24) -
_ dump (12) -
_ getproperty (12) -
_ invoke (12) -
_ load (12) - add (12)
-
add
_ entry (12) - all (36)
- allocate (12)
- ancestors (12)
-
arg
_ config (12) - args (12)
- argv (12)
-
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 (12)
- attr (12)
- begin (12)
- bind (24)
-
bind
_ call (12) -
body
_ stream (12) -
body
_ stream= (12) - bsearch (48)
- call (36)
- clamp (27)
- class (12)
-
class
_ eval (24) -
class
_ exec (12) -
class
_ variable _ get (12) -
class
_ variable _ set (12) -
class
_ variables (12) - clone (48)
-
cofactor
_ expansion (12) - collect (60)
- comment (12)
- comment= (12)
-
compare
_ by _ identity (12) - component (12)
- connect (24)
-
connect
_ from (24) -
connect
_ nonblock (12) -
connect
_ to (24) -
const
_ defined? (12) -
const
_ get (12) -
const
_ set (12) -
const
_ source _ location (12) - constants (12)
- context (24)
- convert (12)
-
convertible
_ int (24) - cooked (12)
- cycle (24)
- data (24)
- deconstruct (12)
-
def
_ class (12) - default (36)
-
default
_ event _ sources (12) -
default
_ ole _ types (12) -
define
_ singleton _ method (24) - delete (132)
-
delete
_ at (12) -
delete
_ field (12) -
delete
_ if (24) -
delete
_ observer (12) -
deprecate
_ constant (12) - deq (24)
- detect (24)
- difference (7)
- dig (40)
- disable (24)
- dispid (12)
- display (12)
-
document
_ children (12) -
document
_ children= (12) -
document
_ self (12) -
document
_ self= (12) - documented? (12)
- dup (48)
- each (182)
-
each
_ byte (24) -
each
_ char (24) -
each
_ child (24) -
each
_ line (48) -
each
_ with _ object (24) - element (12)
- enable (24)
- end (12)
- entries (12)
-
enum
_ for (48) - eql? (75)
- equal? (36)
- eval (24)
- evaluate (12)
- event? (12)
-
event
_ interface (12) - execute (12)
- exit (12)
-
exit
_ value (12) - extend (12)
-
extend
_ object (12) - extended (12)
- feed (12)
- fetch (140)
-
fetch
_ spec (12) -
fetch
_ values (20) - field (12)
- fill (72)
- filter (42)
-
filter
_ map (12) - find (24)
-
find
_ all (24) - first (72)
- force (12)
- freeze (36)
- front (24)
- frozen? (12)
- generate (12)
- getbyte (12)
- getc (12)
- grep (24)
-
grep
_ v (24) - guid (24)
- handler (12)
- hash (51)
- helpcontext (24)
- helpfile (24)
-
implemented
_ ole _ types (12) - include (12)
- index (7)
- initialize (12)
-
initialize
_ clone (12) -
initialize
_ copy (12) -
initialize
_ dup (12) - inject (48)
- input? (12)
- inspect (78)
-
inspect
_ mode (12) -
instance
_ eval (24) -
instance
_ exec (12) -
instance
_ method (12) -
instance
_ methods (12) -
instance
_ of? (12) -
instance
_ variable _ defined? (12) -
instance
_ variable _ get (12) -
instance
_ variable _ set (12) -
instance
_ variables (12) - intersection (6)
- invert (12)
- invkind (12)
- invoke (12)
-
invoke
_ kind (12) - irb (9)
-
irb
_ exit (12) -
is
_ a? (12) - itself (12)
- j (12)
- jj (12)
- key (20)
- keys (12)
-
kind
_ of? (12) -
laplace
_ expansion (12) - last (48)
-
last
_ value (12) -
library
_ name (12) - listen (24)
- ln (12)
-
load
_ file (12) -
load
_ specs (12) -
local
_ variable _ get (12) - logger (24)
-
long
_ name (12) - lookup (12)
- mail (36)
- main (12)
-
major
_ version (24) - map (48)
-
marshal
_ dump (24) -
marshal
_ load (24) - match (48)
- max (130)
-
max
_ by (48) - method (12)
-
method
_ missing (36) - methods (24)
- min (130)
-
min
_ by (48) - minmax (48)
-
minmax
_ by (24) -
minor
_ version (24) - modifiable (12)
-
module
_ eval (24) -
module
_ exec (12) -
mon
_ synchronize (18) -
mu
_ extended (12) -
mu
_ pp (1) -
mu
_ synchronize (12) -
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 (72)
- new (12)
- next (12)
-
next
_ values (12) - nil? (12)
- noecho (12)
- nonblock (12)
-
object
_ group (12) -
object
_ id (12) -
object
_ nl (12) -
object
_ nl= (12) -
offset
_ vtbl (12) - oid (24)
- oid= (12)
-
ole
_ classes (12) -
ole
_ methods (12) -
ole
_ type (36) -
ole
_ type _ detail (12) -
ole
_ typelib (24) -
ole
_ types (12) - on (144)
-
on
_ XXX (12) -
on
_ default (12) - open (24)
- optional? (12)
- output (12)
- parameters (43)
- params (12)
- parent (12)
- parent= (12)
-
parent
_ file _ name (12) -
parent
_ name (12) - parse (24)
- partition (24)
- path (12)
- peek (12)
-
peek
_ values (12) - pop (84)
- pp (24)
- ppx (12)
-
pretty
_ inspect (12) -
pretty
_ print (12) -
pretty
_ print _ cycle (12) -
pretty
_ print _ inspect (12) -
pretty
_ print _ instance _ variables (12) -
private
_ constant (9) -
private
_ instance _ methods (12) -
private
_ methods (12) - progid (12)
-
protected
_ instance _ methods (12) -
protected
_ methods (24) -
psych
_ to _ yaml (12) -
psych
_ y (12) -
psych
_ yaml _ as (4) - public (48)
-
public
_ constant (9) -
public
_ instance _ method (12) -
public
_ instance _ methods (12) -
public
_ method (12) -
public
_ methods (24) -
public
_ send (24) - push (24)
- pushd (6)
- pushdir (6)
- putc (48)
- puts (12)
- raise (18)
- rand (36)
- raw (12)
-
rcptto
_ list (12) -
read
_ nonblock (12) - receiver (47)
-
recv
_ io (12) - reduce (36)
- rehash (12)
- reject (60)
- reload (12)
-
remove
_ class _ variable (12) -
remove
_ classes _ and _ modules (12) -
remove
_ const (12) -
remove
_ instance _ variable (12) -
remove
_ methods _ etc (12) - replace (12)
-
respond
_ to? (24) -
respond
_ to _ missing? (12) - responses (12)
- result (12)
- resume (12)
-
return
_ type (12) -
return
_ type _ detail (12) -
return
_ value (12) -
return
_ vtype (12) - rewind (7)
- sample (48)
-
save
_ exception _ mode (12) -
save
_ limit (12) -
save
_ rounding _ mode (12) -
scan
_ full (12) -
search
_ full (12) - section (12)
- section= (12)
- select (96)
- self (12)
- send (24)
-
set
_ last _ value (12) - shift (72)
-
short
_ name (12) -
singleton
_ class (12) -
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) -
size
_ opt _ params (12) -
size
_ params (12) - slice (36)
- slice! (36)
- sn (12)
- sort (24)
-
sort
_ by (24) -
source
_ ole _ types (12) -
src
_ type (12) - start (80)
-
start
_ doc (12) -
stop
_ doc (12) - store (24)
- string (12)
- sum (42)
- superclass (12)
-
sync
_ synchronize (6) - synchronize (60)
- tag (11)
- taint (9)
- tainted? (9)
- tally (10)
- tap (12)
- then (14)
-
thread
_ variable _ get (12) - time (12)
- timeout (16)
-
to
_ a (48) -
to
_ ary (12) -
to
_ enum (48) -
to
_ h (31) -
to
_ hash (36) -
to
_ int (12) -
to
_ io (12) -
to
_ json (12) -
to
_ json _ raw (12) -
to
_ json _ raw _ object (12) -
to
_ obj (24) -
to
_ proc (16) -
to
_ regexp (12) -
to
_ ruby (12) -
to
_ s (108) -
to
_ str (12) -
to
_ value (12) -
to
_ yaml (12) - tokenize (12)
-
trace
_ func (12) - transact (18)
- transaction (12)
- transfer (12)
- transform (12)
- trust (9)
- trust= (24)
- typekind (12)
- umask (6)
- union (7)
- uniq (24)
- uniq! (24)
- unpack1 (9)
- unshift (12)
- untaint (9)
- untrust (9)
- untrusted? (9)
- value (59)
- values (36)
-
values
_ at (36) -
variable
_ kind (12) - variables (12)
- varkind (12)
- version (12)
- visible? (48)
-
with
_ index (24) -
with
_ object (48) -
with
_ werror (24) - write (12)
-
write
_ nonblock (12) - xmp (12)
- xpopen (24)
- y (12)
-
yaml
_ as (4) - yield (12)
-
yield
_ self (16) - zip (48)
- | (18)
検索結果
先頭5件
-
Object
# initialize(*args , &block) -> object (21102.0) -
ユーザ定義クラスのオブジェクト初期化メソッド。
ユーザ定義クラスのオブジェクト初期化メソッド。
このメソッドは Class#new から新しく生成されたオブ
ジェクトの初期化のために呼び出されます。他の言語のコンストラクタに相当します。
デフォルトの動作ではなにもしません。
initialize には
Class#new に与えられた引数がそのまま渡されます。
サブクラスではこのメソッドを必要に応じて再定義されること
が期待されています。
initialize という名前のメソッドは自動的に private に設定され
ます。
@param args 初期化時の引数です。
@param block 初期化時のブロック引数です。必... -
Object
# remove _ instance _ variable(name) -> object (21102.0) -
オブジェクトからインスタンス変数 name を取り除き、そのインス タンス変数に設定されていた値を返します。
オブジェクトからインスタンス変数 name を取り除き、そのインス
タンス変数に設定されていた値を返します。
@param name 削除するインスタンス変数の名前をシンボルか文字列で指定します。
@raise NameError オブジェクトがインスタンス変数 name を持たない場合に発生します。
//emlist[][ruby]{
class Foo
def foo
@foo = 1
p remove_instance_variable(:@foo) #=> 1
p remove_instance_variable(:@foo) # instance v... -
Object
# methods(include _ inherited = true) -> [Symbol] (21049.0) -
そのオブジェクトに対して呼び出せるメソッド名の一覧を返します。 このメソッドは public メソッドおよび protected メソッドの名前を返します。
...ected メソッドの名前を返します。
ただし特別に、引数が偽の時は Object#singleton_methods(false) と同じになっています。
@param include_inherited 引数が偽の時は Object#singleton_methods(false) と同じになります。
//emlist[例1][ruby]{
class Parent......指定して
# いるが、Object のインスタンスメソッドは一覧から排除している。
p obj.methods(true) - Object.instance_methods(true)
p obj.public_methods(true) - Object.public_instance_methods(true)
p obj.private_methods(true) - Object.private_instance_methods(t......rue)
p obj.protected_methods(true) - Object.protected_instance_methods(true)
# 実行結果
[:protected_singleton, :public_singleton, :protected_foo, :public_foo, :protected_parent, :public_parent]
[:public_singleton, :public_foo, :public_parent]
[:private_singleton, :private_foo, :private_parent]... -
Object
# pretty _ print _ inspect -> String (21045.0) -
Object#pretty_print を使って Object#inspect と同様に オブジェクトを人間が読める形式に変換した文字列を返します。
...
Object#pretty_print を使って Object#inspect と同様に
オブジェクトを人間が読める形式に変換した文字列を返します。
出力する全てのオブジェクトに Object#pretty_print が定義されている必要があります。
そうでない場合には RuntimeEr......ror が発生します。
@raise RuntimeError 出力する全てのオブジェクトに Object#pretty_print が定義されて
いない場合に発生します。... -
Object
# equal?(other) -> bool (21037.0) -
other が self 自身の時、真を返します。
...Object#object_idが一致する
かどうかを調べます。
@param other 比較するオブジェクトです。
//emlist[][ruby]{
p("foo".equal?("bar")) #=> false
p("foo".equal?("foo")) #=> false
p(4.equal?(4)) #=> true
p(4.equal?(4.0)) #=> false
p(:foo.equal? :foo) #=> true
//}
@see Object......#object_id,Object#==,Object#eql?,Symbol... -
Object
# singleton _ methods(inherited _ too = true) -> [Symbol] (21037.0) -
そのオブジェクトに対して定義されている特異メソッド名 (public あるいは protected メソッド) の一覧を返します。
...た特異メソッドとは Object#extend によって追加された特異メソッドや、
self がクラスの場合はスーパークラスのクラスメソッド(Classのインスタンスの特異メソッド)などです。
singleton_methods(false) は、Object#methods(false) と同じで......ラスのクラスメソッドも含まれるよう true を指定したが、
# Object のクラスメソッドは一覧から排除している。
p obj.singleton_methods(true)
p Foo.singleton_methods(true) - Object.singleton_methods(true)
#実行結果
[:protected_self, :public_self, :protecte......d_bar, :public_bar]
[:protected_class_foo, :public_class_foo, :protected_class_parent, :public_class_parent]
//}
@see Object#methods,Object#extend... -
Object
# hash -> Integer (21035.0) -
オブジェクトのハッシュ値を返します。このハッシュ値は、Object#eql? と合わせて Hash クラスで、2つのオブジェクトを同一のキーとするか判定するために用いられます。
...オブジェクトのハッシュ値を返します。このハッシュ値は、Object#eql? と合わせて Hash クラスで、2つのオブジェクトを同一のキーとするか判定するために用いられます。
2つのオブジェクトのハッシュ値が異なるとき、直ち......として判定されます。
逆に、2つのハッシュ値が同じとき、さらに Object#eql? での比較により判定されます。
そのため、同じキーとして判定される状況は Object#eql? の比較で真となる場合のみであり、このとき前段階としてハ......6494
p 0.hash #=> 2647535320520409998
p 0.0.hash #=> -2975129765814025835
p nil.hash #=> 2401531420355998067
p "ruby".hash #=> 4460896024486900438
p "ruby".hash #=> 4460896024486900438
p :ruby.hash #=> 3979895509189707770
p :ruby.hash #=> 3979895509189707770
//}
@see Object#eql?, Hash#[]... -
Object
# must _ be _ same _ as(actual) -> true (21033.0) -
自身と与えられたオブジェクトの Object#object_id が同じ場合、検査にパスしたことになります。
...自身と与えられたオブジェクトの Object#object_id が同じ場合、検査にパスしたことになります。
@param actual 任意のオブジェクトを指定します。
@raise MiniTest::Assertion 自身と与えられたオブジェクトが異なる場合に発生します。... -
Object
# is _ a?(mod) -> bool (21031.0) -
オブジェクトが指定されたクラス mod かそのサブクラスのインスタンスであるとき真を返します。
...ードしたクラスかそのサブクラス
のインスタンスである場合にも真を返します。
Module#includeだけではなく、Object#extendやModule#prependに
よってサブクラスのインスタンスになる場合も含みます。
上記のいずれでもない場合に fa......です。
//emlist[][ruby]{
module M
end
class C < Object
include M
end
class S < C
end
obj = S.new
p obj.is_a?(S) # true
p obj.is_a?(C) # true
p obj.is_a?(Object) # true
p obj.is_a?(M) # true
p obj.is_a?(Hash) # false
//}
@see Object#instance_of?,Module#===,Object#class... -
Object
# kind _ of?(mod) -> bool (21031.0) -
オブジェクトが指定されたクラス mod かそのサブクラスのインスタンスであるとき真を返します。
...ードしたクラスかそのサブクラス
のインスタンスである場合にも真を返します。
Module#includeだけではなく、Object#extendやModule#prependに
よってサブクラスのインスタンスになる場合も含みます。
上記のいずれでもない場合に fa......です。
//emlist[][ruby]{
module M
end
class C < Object
include M
end
class S < C
end
obj = S.new
p obj.is_a?(S) # true
p obj.is_a?(C) # true
p obj.is_a?(Object) # true
p obj.is_a?(M) # true
p obj.is_a?(Hash) # false
//}
@see Object#instance_of?,Module#===,Object#class...