7534件ヒット
[1-100件を表示]
(0.065秒)
別のキーワード
種類
ライブラリ
- ビルトイン (3757)
- csv (12)
- date (12)
- delegate (156)
- digest (12)
- drb (132)
-
drb
/ extserv (24) -
drb
/ gw (12) -
drb
/ timeridconv (12) - fiber (8)
- fiddle (24)
- gdbm (24)
- irb (12)
-
irb
/ cmd / subirb (12) -
irb
/ context (36) -
irb
/ ext / save-history (12) -
irb
/ extend-command (24) -
irb
/ frame (12) -
irb
/ inspector (12) -
irb
/ magic-file (24) -
irb
/ output-method (36) -
irb
/ xmp (24) - json (276)
-
minitest
/ spec (4) -
minitest
/ unit (8) - monitor (12)
-
mutex
_ m (12) -
net
/ http (72) -
net
/ imap (36) -
net
/ pop (156) -
net
/ smtp (64) - objspace (96)
- observer (12)
- open-uri (32)
- openssl (252)
- optparse (168)
- ostruct (46)
- pp (112)
- prettyprint (24)
- prime (24)
- psych (242)
- pty (24)
- rake (24)
-
rdoc
/ code _ object (36) -
rexml
/ document (24) -
ripper
/ sexp (24) - set (9)
-
shell
/ filter (12) - socket (240)
- stringio (36)
- tempfile (60)
- uri (36)
- weakref (24)
-
webrick
/ cgi (12) -
webrick
/ httpauth / authenticator (12) -
webrick
/ httpauth / basicauth (12) - win32ole (324)
-
yaml
/ dbm (36) - zlib (96)
クラス
-
ARGF
. class (156) - Addrinfo (120)
- Array (442)
- BasicObject (108)
- Binding (12)
- CSV (12)
- Class (24)
-
DRb
:: DRbIdConv (12) -
DRb
:: DRbObject (60) -
DRb
:: DRbServer (12) -
DRb
:: DRbUnknown (12) -
DRb
:: ExtServ (24) -
DRb
:: GW (12) -
DRb
:: TimerIdConv (12) - Data (9)
- Date (12)
- Delegator (108)
-
Digest
:: Base (12) - Dir (72)
- Enumerator (72)
-
Enumerator
:: Chain (21) -
Enumerator
:: Yielder (24) - Fiber (54)
-
Fiddle
:: Pointer (12) - File (36)
- FrozenError (6)
- GDBM (24)
- Hash (94)
- IO (348)
-
IRB
:: Context (24) -
IRB
:: ExtendCommand :: Kill (12) -
IRB
:: Frame (12) -
IRB
:: Inspector (12) -
IRB
:: OutputMethod (36) - Integer (4)
-
JSON
:: Parser (24) -
JSON
:: State (36) - Method (92)
- Module (68)
- NameError (34)
-
Net
:: HTTP (48) -
Net
:: HTTPGenericRequest (24) -
Net
:: IMAP :: FetchData (12) -
Net
:: IMAP :: ResponseCode (12) -
Net
:: IMAP :: UntaggedResponse (12) -
Net
:: POP3 (48) -
Net
:: POPMail (108) -
Net
:: SMTP (64) - Object (790)
-
ObjectSpace
:: WeakMap (24) -
OpenSSL
:: ASN1 :: ASN1Data (12) -
OpenSSL
:: ASN1 :: ObjectId (96) -
OpenSSL
:: X509 :: Attribute (24) -
OpenSSL
:: X509 :: Name (72) - OpenStruct (46)
- OptionParser (144)
- PP (72)
- PrettyPrint (24)
-
Prime
:: PseudoPrimeGenerator (24) - Proc (31)
-
Psych
:: Nodes :: Node (24) -
Psych
:: ScalarScanner (12) -
Psych
:: Visitors :: YAMLTree (24) -
RDoc
:: CodeObject (36) -
REXML
:: Attribute (12) -
REXML
:: DocType (12) - Random (36)
- Range (164)
- Regexp (24)
- Ripper (24)
- Set (12)
-
Shell
:: Filter (12) - SimpleDelegator (36)
- Socket (120)
- StopIteration (12)
- String (61)
- StringIO (36)
- Struct (10)
- Symbol (4)
- Tempfile (60)
- TracePoint (12)
- UnboundMethod (12)
-
WEBrick
:: CGI (12) -
WEBrick
:: HTTPAuth :: BasicAuth (12) - WIN32OLE (120)
-
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ METHOD (36) -
WIN32OLE
_ TYPE (96) -
WIN32OLE
_ TYPELIB (12) -
WIN32OLE
_ VARIANT (24) - WeakRef (12)
- XMP (12)
-
YAML
:: DBM (36) -
Zlib
:: GzipReader (48) -
Zlib
:: GzipWriter (48)
モジュール
- Comparable (15)
- DRb (12)
- Enumerable (312)
- Fiddle (12)
-
GC
:: Profiler (12) - IRB (12)
-
IRB
:: ExtendCommandBundle (24) -
IRB
:: HistorySavingAbility (12) - JSON (168)
-
JSON
:: Generator :: GeneratorMethods :: Object (12) - Kernel (437)
- Marshal (48)
-
MiniTest
:: Assertions (8) - ObjectSpace (216)
- Observable (12)
-
OpenSSL
:: ASN1 (24) -
OptionParser
:: Arguable (24) - PTY (24)
- Psych (114)
-
Rake
:: Cloneable (24) - URI (40)
-
WEBrick
:: HTTPAuth :: Authenticator (12)
オブジェクト
- ENV (16)
-
IRB
:: MagicFile (24)
キーワード
- ! (12)
- != (12)
- !~ (12)
-
$ -K (5) -
$ . (12) -
$ > (12) -
$ KCODE (5) -
$ stderr (12) -
$ stdin (12) -
$ stdout (12) - % (12)
- & (12)
- - (12)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - << (36)
- <=> (12)
- == (63)
- === (44)
- =~ (9)
- ARGF (24)
- ARGV (12)
- Array (12)
- BasicObject (12)
- Binding (12)
- Context (12)
- DATA (12)
- DRbObject (12)
- DRbProtocol (12)
- Data (3)
- ENV (12)
- Float (12)
- FrozenError (8)
- Hash (12)
- Integer (12)
- JSON (12)
- Marshal フォーマット (12)
- Method (12)
- MonitorMixin (12)
-
Mutex
_ m (12) -
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) - ObjectId (36)
- ObjectSpace (12)
-
RUBY
_ PATCHLEVEL (12) -
RUBY
_ REVISION (12) - Rational (12)
- Ruby プログラムの実行 (12)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
- Ruby用語集 (12)
- SSLContext (12)
- STDERR (12)
- STDIN (12)
- STDOUT (12)
- Set (3)
- SimpleDelegator (12)
- String (12)
-
TOPLEVEL
_ BINDING (12) - URI (12)
-
WIN32OLE
_ TYPE (12) -
WIN32OLE
_ VARIABLE (12) - WeakMap (12)
- WeakRef (12)
- [] (120)
- []= (36)
-
_ _ drbref (12) -
_ _ drburi (12) -
_ _ getobj _ _ (36) -
_ _ id _ _ (12) -
_ _ send _ _ (24) -
_ _ setobj _ _ (24) -
_ dump (12) -
_ getproperty (12) -
_ id2ref (12) -
_ invoke (12) -
_ load (12) - all (36)
- allocate (12)
-
append
_ as _ bytes (1) -
assert
_ empty (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)
- binding (12)
-
body
_ stream (12) -
body
_ stream= (12) -
boot
_ defclass (12) - call (24)
- catch (24)
- clamp (15)
- clone (48)
-
compare
_ by _ identity (12) - connect (36)
-
connect
_ from (24) -
connect
_ to (24) -
const
_ load (12) - context (12)
-
count
_ objects (12) -
count
_ objects _ size (12) -
count
_ tdata _ objects (12) - create (24)
- cycle (24)
- data (24)
- debug (12)
-
def
_ inspector (12) -
default
_ event _ sources (12) -
define
_ finalizer (24) -
delete
_ at (12) -
delete
_ observer (12) - detect (24)
- dig (40)
- display (12)
- dlunwrap (12)
- drb (12)
-
drb
/ extservm (12) - dump (60)
-
dump
_ stream (12) - dup (40)
- each (62)
-
each
_ byte (24) -
each
_ char (24) -
each
_ line (48) -
each
_ object (48) -
each
_ with _ object (24) - end (12)
- eql? (39)
- equal? (24)
- eval (24)
- execute (12)
- exit (12)
- extend (12)
-
extend
_ object (24) - extended (24)
-
fast
_ generate (12) -
fast
_ unparse (12) - fetch (36)
- file (12)
- fill (72)
- find (24)
- first (72)
-
for
_ fd (12) - format (24)
- freeze (12)
- front (36)
- frozen? (12)
-
garbage
_ collect (12) - generate (24)
- gets (12)
- grep (24)
-
grep
_ v (24) - guid (12)
- handler (12)
- hash (15)
- helpcontext (12)
- helpfile (24)
- initialize (12)
-
initialize
_ clone (12) -
initialize
_ copy (12) -
initialize
_ dup (12) - inject (36)
- inspect (42)
-
instance
_ eval (24) -
instance
_ method (12) -
instance
_ of? (12) -
instance
_ variable _ get (12) -
instance
_ variable _ set (12) -
instance
_ variables (12) - intersection (6)
- invoke (12)
- irb (12)
-
irb
/ completion (12) -
irb
_ exit (24) -
is
_ a? (12) - j (12)
- jj (12)
- join (12)
- json (12)
-
kind
_ of? (12) - lambda (13)
- last (48)
- listen (24)
- ln (12)
- load (39)
-
load
_ documents (8) -
load
_ file (24) -
load
_ file! (12) -
load
_ stream (24) -
local
_ variable _ get (12) - logger (24)
-
long
_ name (12) - mail (36)
- main (24)
-
marshal
_ dump (24) -
marshal
_ load (12) - match (24)
- max (46)
-
memsize
_ of (12) -
memsize
_ of _ all (12) - method (12)
-
method
_ missing (24) - methods (24)
- min (46)
- minmax (24)
-
minmax
_ by (24) -
mu
_ pp (1) -
must
_ be _ same _ as (1) -
must
_ equal (1) -
must
_ include (1) -
must
_ throw (1) - name (12)
-
net
/ smtp (12) - new (307)
-
new
_ with _ uri (12) - next (12)
-
next
_ values (12) -
object
_ group (12) -
object
_ id (12) -
object
_ nl (12) -
object
_ nl= (12) - oid (12)
-
ole
_ classes (12) -
ole
_ typelib (24) - on (144)
- open (320)
- p (12)
- parameters (36)
- parent (12)
- parent= (12)
- parse (48)
- parse! (12)
-
parse
_ openssl (12) -
parse
_ rfc2253 (12) - peek (12)
-
peek
_ values (12) - pipe (96)
- pop (60)
- popen (168)
- pp (48)
- ppx (12)
-
pretty
_ generate (12) -
pretty
_ print (12) -
pretty
_ print _ cycle (12) -
pretty
_ print _ inspect (12) -
pretty
_ unparse (12) -
private
_ methods (12) - proc (14)
- progid (12)
-
protected
_ methods (24) -
psych
_ to _ yaml (12) -
psych
_ y (12) -
psych
_ yaml _ as (4) -
public
_ instance _ method (12) -
public
_ method (12) -
public
_ methods (24) -
public
_ send (24) - push (12)
- putc (24)
- puts (12)
- raise (18)
- rand (36)
-
rb
_ data _ object _ alloc (12) -
rb
_ define _ class _ under (12) -
rb
_ obj _ dup (12) -
rb
_ obj _ singleton _ methods (12) -
reachable
_ objects _ from (12) -
read
_ nonblock (12) - readline (12)
- receiver (28)
- reduce (36)
- register (12)
- rehash (12)
- reject (12)
- reload (12)
-
remove
_ instance _ variable (12) - replace (12)
-
respond
_ to? (24) - restore (24)
- result (24)
- resume (12)
- rewind (7)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) -
safe
_ load (19) - sample (48)
- section= (12)
- self (12)
- send (24)
- sender (12)
- set (9)
- sexp (12)
-
sexp
_ raw (12) -
sharing
_ detection (12) -
sharing
_ detection= (12) - shift (24)
-
short
_ name (12) -
singleline
_ format (12) -
singleline
_ pp (12) -
singleton
_ method (12) -
singleton
_ methods (12) - slice! (36)
- sn (12)
- sprintf (12)
- sprintf フォーマット (12)
- start (160)
- store (12)
- sum (42)
- taint (6)
- tainted? (9)
- tcp (24)
-
tcp
_ server _ sockets (48) - throw (12)
-
to
_ a (12) -
to
_ ary (12) -
to
_ hash (12) -
to
_ int (12) -
to
_ io (12) -
to
_ json (12) -
to
_ obj (24) -
to
_ proc (16) -
to
_ regexp (12) -
to
_ ruby (12) -
to
_ s (48) -
to
_ str (12) -
to
_ value (12) -
to
_ yaml (12) - tokenize (12)
-
trace
_ object _ allocations (12) -
trace
_ object _ allocations _ start (12) -
trace
_ object _ allocations _ stop (12) - transfer (12)
- transform (12)
-
try
_ convert (16) -
udp
_ server _ sockets (48) -
undefine
_ finalizer (12) - unparse (12)
- untaint (6)
- value (24)
- variables (12)
-
with
_ object (48) - wrap (48)
- write (12)
-
write
_ nonblock (12) - xmp (12)
- y (12)
- yaml (12)
-
yaml
_ as (4) -
yaml
_ tag (12) - yield (24)
- zip (24)
- | (18)
- このマニュアルのヘルプ (12)
- オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (12)
- クラス/メソッドの定義 (12)
- セキュリティモデル (12)
- メソッド呼び出し(super・ブロック付き・yield) (12)
- 変数と定数 (12)
検索結果
先頭5件
-
Object (38022.0)
-
全てのクラスのスーパークラス。 オブジェクトの一般的な振舞いを定義します。
...全てのクラスのスーパークラス。
オブジェクトの一般的な振舞いを定義します。
このクラスのメソッドは上書きしたり未定義にしない限り、すべてのオブジェクトで使用することができます。... -
Object
# object _ id -> Integer (27229.0) -
各オブジェクトに対して一意な整数を返します。あるオブジェクトに対し てどのような整数が割り当てられるかは不定です。
...各オブジェクトに対して一意な整数を返します。あるオブジェクトに対し
てどのような整数が割り当てられるかは不定です。
Rubyでは、(Garbage Collectされていない)アクティブなオブジェクト間で
重複しない整数(object_id)が......ueClass, FalseClass, NilClass, Symbol, Integer クラス
のインスタンスなど Immutable(変更不可)なオブジェクトの一部は同じ内容ならば必ず同じ 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... -
Object
# initialize _ copy(obj) -> object (21207.0) -
(拡張ライブラリによる) ユーザ定義クラスのオブジェクトコピーの初期化メソッド。
...クラスのオブジェクトコピーの初期化メソッド。
このメソッドは self を obj の内容で置き換えます。ただ
し、self のインスタンス変数や特異メソッドは変化しません。
デフォルトでは、Object#clone の内部で Object#initialize_clon......e から、
また Object#dup の内部で Object#initialize_dup から呼ばれます。
initialize_copy は、Ruby インタプリタが知り得ない情報をコピーするた
めに使用(定義)されます。例えば C 言語でクラスを実装する場合、情報
をインスタンス......alize_copy でコピーするよう定義しておくことで、dup や clone
を再定義する必要がなくなります。
デフォルトの Object#initialize_copy は、 freeze チェックおよび型のチェックを行い self
を返すだけのメソッドです。
initialize_copy と... -
Object
# clone(freeze: nil) -> object (21160.0) -
オブジェクトの複製を作成して返します。
...
オブジェクトの複製を作成して返します。
dup はオブジェクトの内容, taint 情報をコピーし、
clone はそれに加えて freeze, 特異メソッドなどの情報も含めた完全な複製を作成します。
clone や dup は浅い(shallow)コピーであるこ......意してください。後述。
TrueClass, FalseClass, NilClass, Symbol, そして Numeric クラスのインスタンスなど一部のオブジェクトは複製ではなくインスタンス自身を返します。
@param freeze true を指定すると freeze されたコピーを返します......ozen?) #=> false
p(obj_d.respond_to?(:fuga)) #=> false
//}
@see Object#initialize_copy
=== 深いコピーと浅いコピー
clone や dup はオブジェクト自身を複製するだけで、オブジェクトの指し
ている先(たとえば配列の要素など)までは複製し......
オブジェクトの複製を作成して返します。
dup はオブジェクトの内容をコピーし、
clone はそれに加えて freeze, 特異メソッドなどの情報も含めた完全な複製を作成します。
clone や dup は浅い(shallow)コピーであることに注意し......てください。後述。
TrueClass, FalseClass, NilClass, Symbol, そして Numeric クラスのインスタンスなど一部のオブジェクトは複製ではなくインスタンス自身を返します。
@param freeze true を指定すると freeze されたコピーを返します。... -
Object
# dup -> object (21160.0) -
オブジェクトの複製を作成して返します。
...
オブジェクトの複製を作成して返します。
dup はオブジェクトの内容, taint 情報をコピーし、
clone はそれに加えて freeze, 特異メソッドなどの情報も含めた完全な複製を作成します。
clone や dup は浅い(shallow)コピーであるこ......意してください。後述。
TrueClass, FalseClass, NilClass, Symbol, そして Numeric クラスのインスタンスなど一部のオブジェクトは複製ではなくインスタンス自身を返します。
@param freeze true を指定すると freeze されたコピーを返します......ozen?) #=> false
p(obj_d.respond_to?(:fuga)) #=> false
//}
@see Object#initialize_copy
=== 深いコピーと浅いコピー
clone や dup はオブジェクト自身を複製するだけで、オブジェクトの指し
ている先(たとえば配列の要素など)までは複製し......
オブジェクトの複製を作成して返します。
dup はオブジェクトの内容をコピーし、
clone はそれに加えて freeze, 特異メソッドなどの情報も含めた完全な複製を作成します。
clone や dup は浅い(shallow)コピーであることに注意し......てください。後述。
TrueClass, FalseClass, NilClass, Symbol, そして Numeric クラスのインスタンスなど一部のオブジェクトは複製ではなくインスタンス自身を返します。
@param freeze true を指定すると freeze されたコピーを返します。... -
Object
# initialize _ clone(obj) -> object (21151.0) -
Object#clone がオブジェクトを複製する際に呼び出すメソッドです。
...
Object#clone がオブジェクトを複製する際に呼び出すメソッドです。
デフォルトでは Object#initialize_copy を呼び出します。
initialize_clone という名前のメソッドは自動的に private に設定されます。
@see Object#initialize_copy, Object#initi... -
Object
# initialize _ dup(obj) -> object (21151.0) -
Object#dup がオブジェクトを複製する際に呼び出すメソッドです。
...
Object#dup がオブジェクトを複製する際に呼び出すメソッドです。
デフォルトでは Object#initialize_copy を呼び出します。
initialize_dup という名前のメソッドは自動的に private に設定されます。
@see Object#initialize_copy, Object#initializ... -
Object
# instance _ variable _ set(var , value) -> object (21141.0) -
オブジェクトのインスタンス変数 var に値 value を設定します。
...
オブジェクトのインスタンス変数 var に値 value を設定します。
インスタンス変数が定義されていなければ新たに定義されます。
@param var インスタンス変数名を文字列か Symbol で指定します。
@param value 設定する値です。
@re......value を返します。
//emlist[][ruby]{
obj = Object.new
p obj.instance_variable_set("@foo", 1) #=> 1
p obj.instance_variable_set(:@foo, 2) #=> 2
p obj.instance_variable_get(:@foo) #=> 2
//}
@see Object#instance_variable_get,Object#instance_variables,Object#instance_variable_defined?... -
Object
# send(name , *args) -> object (21136.0) -
オブジェクトのメソッド name を args を引数に して呼び出し、メソッドの実行結果を返します。
...
オブジェクトのメソッド name を args を引数に
して呼び出し、メソッドの実行結果を返します。
ブロック付きで呼ばれたときはブロックもそのまま引き渡します。
send が再定義された場合に備えて別名 __send__ も
用意され......のメソッドを呼び出せます。
d:spec/def#limit も参照してください。
public メソッドだけ呼び出せれば良い場合は
Object#public_send を使う方が良いでしょう。
@param name 文字列かSymbol で指定するメソッド名です。
@param args 呼び出す......ーバは任意(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...