6853件ヒット
[1-100件を表示]
(0.115秒)
別のキーワード
種類
ライブラリ
- ビルトイン (3407)
- csv (11)
- date (11)
- delegate (143)
- digest (11)
- drb (121)
-
drb
/ extserv (22) -
drb
/ gw (11) -
drb
/ timeridconv (11) - fiber (8)
- fiddle (22)
- gdbm (22)
- irb (11)
-
irb
/ cmd / subirb (11) -
irb
/ context (33) -
irb
/ ext / save-history (11) -
irb
/ extend-command (22) -
irb
/ frame (11) -
irb
/ inspector (11) -
irb
/ magic-file (22) -
irb
/ output-method (33) -
irb
/ xmp (22) - json (231)
-
minitest
/ spec (4) -
minitest
/ unit (8) - monitor (11)
-
mutex
_ m (11) -
net
/ http (66) -
net
/ imap (33) -
net
/ pop (143) -
net
/ smtp (56) - objspace (88)
- observer (11)
- open-uri (30)
- openssl (231)
- optparse (154)
- ostruct (42)
- pp (103)
- prettyprint (22)
- prime (22)
- psych (223)
- pty (22)
- rake (22)
-
rdoc
/ code _ object (33) -
rexml
/ document (22) -
ripper
/ sexp (22) - set (11)
-
shell
/ filter (12) - socket (220)
- stringio (33)
- tempfile (55)
- uri (33)
- weakref (22)
-
webrick
/ cgi (11) -
webrick
/ httpauth / authenticator (11) -
webrick
/ httpauth / basicauth (11) - win32ole (297)
-
yaml
/ dbm (33) - zlib (88)
クラス
-
ARGF
. class (143) - Addrinfo (110)
- Array (404)
- BasicObject (99)
- Binding (11)
- CSV (11)
- Class (22)
-
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 (99)
-
Digest
:: Base (11) - Dir (66)
- Enumerator (66)
-
Enumerator
:: Chain (18) -
Enumerator
:: Yielder (22) - Fiber (48)
-
Fiddle
:: Pointer (11) - File (33)
- FrozenError (5)
- GDBM (22)
- Hash (86)
- IO (319)
-
IRB
:: Context (22) -
IRB
:: ExtendCommand :: Kill (11) -
IRB
:: Frame (11) -
IRB
:: Inspector (11) -
IRB
:: OutputMethod (33) - Integer (3)
-
JSON
:: Parser (22) -
JSON
:: State (33) - Method (84)
- Module (63)
- NameError (31)
-
Net
:: HTTP (44) -
Net
:: HTTPGenericRequest (22) -
Net
:: IMAP :: FetchData (11) -
Net
:: IMAP :: ResponseCode (11) -
Net
:: IMAP :: UntaggedResponse (11) -
Net
:: POP3 (44) -
Net
:: POPMail (99) -
Net
:: SMTP (56) - Object (705)
-
ObjectSpace
:: WeakMap (22) -
OpenSSL
:: ASN1 :: ASN1Data (11) -
OpenSSL
:: ASN1 :: ObjectId (88) -
OpenSSL
:: X509 :: Attribute (22) -
OpenSSL
:: X509 :: Name (66) - OpenStruct (42)
- OptionParser (132)
- PP (66)
- PrettyPrint (22)
-
Prime
:: PseudoPrimeGenerator (22) - Proc (29)
-
Psych
:: Nodes :: Node (22) -
Psych
:: ScalarScanner (11) -
Psych
:: Visitors :: YAMLTree (22) -
RDoc
:: CodeObject (33) -
REXML
:: Attribute (11) -
REXML
:: DocType (11) - Random (33)
- Range (150)
- Regexp (22)
- Ripper (22)
- Set (11)
-
Shell
:: Filter (12) - SimpleDelegator (33)
- Socket (110)
- StopIteration (11)
- String (55)
- StringIO (33)
- Struct (9)
- Symbol (3)
- Tempfile (55)
- TracePoint (11)
- UnboundMethod (11)
-
WEBrick
:: CGI (11) -
WEBrick
:: HTTPAuth :: BasicAuth (11) - WIN32OLE (110)
-
WIN32OLE
_ EVENT (11) -
WIN32OLE
_ METHOD (33) -
WIN32OLE
_ TYPE (88) -
WIN32OLE
_ TYPELIB (11) -
WIN32OLE
_ VARIANT (22) - WeakRef (11)
- XMP (11)
-
YAML
:: DBM (33) -
Zlib
:: GzipReader (44) -
Zlib
:: GzipWriter (44)
モジュール
- Comparable (13)
- DRb (11)
- Enumerable (286)
- Fiddle (11)
-
GC
:: Profiler (11) - IRB (11)
-
IRB
:: ExtendCommandBundle (22) -
IRB
:: HistorySavingAbility (11) - JSON (132)
-
JSON
:: Generator :: GeneratorMethods :: Object (11) - Kernel (403)
- Marshal (44)
-
MiniTest
:: Assertions (8) - ObjectSpace (198)
- Observable (11)
-
OpenSSL
:: ASN1 (22) -
OptionParser
:: Arguable (22) - PTY (22)
- Psych (105)
-
Rake
:: Cloneable (22) - URI (36)
-
WEBrick
:: HTTPAuth :: Authenticator (11)
オブジェクト
- ENV (14)
-
IRB
:: MagicFile (22)
キーワード
- ! (11)
- != (11)
- !~ (11)
-
$ -K (4) -
$ . (11) -
$ > (11) -
$ KCODE (4) -
$ stderr (11) -
$ stdin (11) -
$ stdout (11) - % (11)
- & (11)
- - (11)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - << (33)
- <=> (11)
- == (57)
- === (40)
- =~ (9)
- ARGF (22)
- ARGV (11)
- Array (11)
- BasicObject (11)
- Binding (11)
- Context (11)
- DATA (11)
- DRbObject (11)
- DRbProtocol (11)
- Data (2)
- ENV (11)
- Float (11)
- FrozenError (7)
- Hash (11)
- Integer (11)
- JSON (11)
- Marshal フォーマット (11)
- Method (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) - ObjectId (33)
- ObjectSpace (11)
-
RUBY
_ PATCHLEVEL (11) -
RUBY
_ REVISION (11) - Rational (11)
- Ruby プログラムの実行 (11)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (11)
- Ruby用語集 (11)
- SSLContext (11)
- STDERR (11)
- STDIN (11)
- STDOUT (11)
- SimpleDelegator (11)
- String (11)
-
TOPLEVEL
_ BINDING (11) - URI (11)
-
WIN32OLE
_ TYPE (11) -
WIN32OLE
_ VARIABLE (11) - WeakMap (11)
- WeakRef (11)
- [] (110)
- []= (33)
-
_ _ drbref (11) -
_ _ drburi (11) -
_ _ getobj _ _ (33) -
_ _ id _ _ (11) -
_ _ send _ _ (22) -
_ _ setobj _ _ (22) -
_ dump (11) -
_ getproperty (11) -
_ id2ref (11) -
_ invoke (11) -
_ load (11) - all (33)
- allocate (11)
-
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 (11)
- attr (11)
- begin (11)
- bind (22)
- binding (11)
-
body
_ stream (11) -
body
_ stream= (11) -
boot
_ defclass (11) - call (22)
- catch (22)
- clamp (13)
- clone (44)
-
compare
_ by _ identity (11) - connect (33)
-
connect
_ from (22) -
connect
_ to (22) -
const
_ load (11) - context (11)
-
count
_ objects (11) -
count
_ objects _ size (11) -
count
_ tdata _ objects (11) - create (22)
- cycle (22)
- data (22)
- debug (11)
-
def
_ inspector (11) -
default
_ event _ sources (11) -
define
_ finalizer (22) -
delete
_ at (11) -
delete
_ observer (11) - detect (22)
- dig (36)
- display (11)
- dlunwrap (11)
- drb (11)
-
drb
/ extservm (11) - dump (55)
-
dump
_ stream (11) - dup (36)
- each (56)
-
each
_ byte (22) -
each
_ char (22) -
each
_ line (44) -
each
_ object (44) -
each
_ with _ object (22) - end (11)
- eql? (35)
- equal? (22)
- eval (22)
- execute (11)
- exit (11)
- extend (11)
-
extend
_ object (22) - extended (22)
-
fast
_ generate (11) -
fast
_ unparse (11) - fetch (33)
- file (11)
- fill (66)
- find (22)
- first (66)
-
for
_ fd (11) - format (22)
- freeze (11)
- front (33)
- frozen? (11)
-
garbage
_ collect (11) - generate (22)
- gets (11)
- grep (22)
-
grep
_ v (22) - guid (11)
- handler (11)
- hash (13)
- helpcontext (11)
- helpfile (22)
- initialize (11)
-
initialize
_ copy (11) - inject (33)
- inspect (39)
-
instance
_ eval (22) -
instance
_ method (11) -
instance
_ of? (11) -
instance
_ variable _ get (11) -
instance
_ variable _ set (11) -
instance
_ variables (11) - intersection (5)
- invoke (11)
- irb (11)
-
irb
/ completion (11) -
irb
_ exit (22) -
is
_ a? (11) - j (11)
- jj (11)
- join (11)
- json (11)
-
kind
_ of? (11) - lambda (13)
- last (44)
- listen (22)
- ln (11)
- load (36)
-
load
_ documents (8) -
load
_ file (11) -
load
_ stream (22) -
local
_ variable _ get (11) - logger (22)
-
long
_ name (11) - mail (33)
- main (22)
-
marshal
_ dump (22) -
marshal
_ load (11) - match (22)
- max (42)
-
memsize
_ of (11) -
memsize
_ of _ all (11) - method (11)
-
method
_ missing (22) - methods (22)
- min (42)
- minmax (22)
-
minmax
_ by (22) -
mu
_ pp (1) -
must
_ be _ same _ as (1) -
must
_ equal (1) -
must
_ include (1) -
must
_ throw (1) - name (11)
-
net
/ smtp (11) - new (282)
-
new
_ with _ uri (11) - next (11)
-
next
_ values (11) -
object
_ group (11) -
object
_ id (11) -
object
_ nl (11) -
object
_ nl= (11) - oid (11)
-
ole
_ classes (11) -
ole
_ typelib (22) - on (132)
- open (294)
- p (11)
- parameters (33)
- parent (11)
- parent= (11)
- parse (44)
- parse! (11)
-
parse
_ openssl (11) -
parse
_ rfc2253 (11) - peek (11)
-
peek
_ values (11) - pipe (88)
- pop (55)
- popen (154)
- pp (44)
- ppx (11)
-
pretty
_ generate (11) -
pretty
_ print (11) -
pretty
_ print _ cycle (11) -
pretty
_ print _ inspect (11) -
pretty
_ unparse (11) -
private
_ methods (11) - proc (14)
- progid (11)
-
protected
_ methods (22) -
psych
_ to _ yaml (11) -
psych
_ y (11) -
psych
_ yaml _ as (4) -
public
_ instance _ method (11) -
public
_ method (11) -
public
_ methods (22) -
public
_ send (22) - push (11)
- putc (22)
- puts (11)
- raise (15)
- rand (33)
-
rb
_ data _ object _ alloc (11) -
rb
_ define _ class _ under (11) -
rb
_ obj _ dup (11) -
rb
_ obj _ singleton _ methods (11) -
reachable
_ objects _ from (11) -
read
_ nonblock (11) - readline (11)
- receiver (25)
- reduce (33)
- register (11)
- rehash (11)
- reject (11)
- reload (11)
-
remove
_ instance _ variable (11) - replace (11)
-
respond
_ to? (22) - restore (22)
- result (22)
- resume (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)
- section= (11)
- self (11)
- send (22)
- sender (11)
- set (11)
- sexp (11)
-
sexp
_ raw (11) -
sharing
_ detection (11) -
sharing
_ detection= (11) - shift (22)
-
short
_ name (11) -
singleline
_ format (11) -
singleline
_ pp (11) -
singleton
_ method (11) -
singleton
_ methods (11) - slice! (33)
- sn (11)
- sprintf (11)
- sprintf フォーマット (11)
- start (144)
- store (11)
- sum (38)
- taint (6)
- tainted? (9)
- tcp (22)
-
tcp
_ server _ sockets (44) - throw (11)
-
to
_ a (11) -
to
_ ary (11) -
to
_ hash (11) -
to
_ int (11) -
to
_ io (11) -
to
_ json (11) -
to
_ obj (22) -
to
_ proc (14) -
to
_ regexp (11) -
to
_ ruby (11) -
to
_ s (44) -
to
_ str (11) -
to
_ value (11) -
to
_ yaml (11) - tokenize (11)
-
trace
_ object _ allocations (11) -
trace
_ object _ allocations _ start (11) -
trace
_ object _ allocations _ stop (11) - transfer (11)
- transform (11)
-
try
_ convert (14) -
udp
_ server _ sockets (44) -
undefine
_ finalizer (11) - unparse (11)
- untaint (6)
- value (22)
- variables (11)
-
with
_ object (44) - wrap (44)
- write (11)
-
write
_ nonblock (11) - xmp (11)
- y (11)
- yaml (11)
-
yaml
_ as (4) -
yaml
_ tag (11) - yield (22)
- zip (22)
- | (17)
- このマニュアルのヘルプ (11)
- オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (11)
- クラス/メソッドの定義 (11)
- セキュリティモデル (11)
- メソッド呼び出し(super・ブロック付き・yield) (11)
- 変数と定数 (11)
検索結果
先頭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 (21183.0) -
(拡張ライブラリによる) ユーザ定義クラスのオブジェクトコピーの初期化メソッド。
...る) ユーザ定義クラスのオブジェクトコピーの初期化メソッド。
このメソッドは self を obj の内容で置き換えます。ただ
し、self のインスタンス変数や特異メソッドは変化しません。
Object#clone, Object#dupの内部で使われてい......alize_copy でコピーするよう定義しておくことで、dup や clone
を再定義する必要がなくなります。
デフォルトの Object#initialize_copy は、 freeze チェックおよび型のチェックを行い self
を返すだけのメソッドです。
initialize_copy と......ラスと異なる場合に発生します。
@see Object#clone,Object#dup
以下に例として、dup や clone がこのメソッドをどのように利用しているかを示します。
obj.dup は、新たに生成したオブジェクトに対して
initialize_copy を呼び
//emlist[][ru... -
Object
# clone(freeze: true) -> object (21160.0) -
オブジェクトの複製を作成して返します。
...
オブジェクトの複製を作成して返します。
dup はオブジェクトの内容, taint 情報をコピーし、
clone はそれに加えて freeze, 特異メソッドなどの情報も含めた完全な複製を作成します。
clone や dup は浅い(shallow)コピーであるこ......スなど一部のオブジェクトは複製ではなくインスタンス自身を返します。
@param freeze false を指定すると freeze されていないコピーを返します。
@raise ArgumentError TrueClass などの常に freeze されているオブジェクトの freeze されて......ozen?) #=> false
p(obj_d.respond_to?(:fuga)) #=> false
//}
@see Object#initialize_copy
=== 深いコピーと浅いコピー
clone や dup はオブジェクト自身を複製するだけで、オブジェクトの指し
ている先(たとえば配列の要素など)までは複製し......
オブジェクトの複製を作成して返します。
dup はオブジェクトの内容をコピーし、
clone はそれに加えて freeze, 特異メソッドなどの情報も含めた完全な複製を作成します。
clone や dup は浅い(shallow)コピーであることに注意し... -
Object
# dup -> object (21160.0) -
オブジェクトの複製を作成して返します。
...
オブジェクトの複製を作成して返します。
dup はオブジェクトの内容, taint 情報をコピーし、
clone はそれに加えて freeze, 特異メソッドなどの情報も含めた完全な複製を作成します。
clone や dup は浅い(shallow)コピーであるこ......スなど一部のオブジェクトは複製ではなくインスタンス自身を返します。
@param freeze false を指定すると freeze されていないコピーを返します。
@raise ArgumentError TrueClass などの常に freeze されているオブジェクトの freeze されて......ozen?) #=> false
p(obj_d.respond_to?(:fuga)) #=> false
//}
@see Object#initialize_copy
=== 深いコピーと浅いコピー
clone や dup はオブジェクト自身を複製するだけで、オブジェクトの指し
ている先(たとえば配列の要素など)までは複製し......
オブジェクトの複製を作成して返します。
dup はオブジェクトの内容をコピーし、
clone はそれに加えて freeze, 特異メソッドなどの情報も含めた完全な複製を作成します。
clone や dup は浅い(shallow)コピーであることに注意し... -
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... -
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... -
Object
# instance _ variable _ get(var) -> object | nil (21135.0) -
オブジェクトのインスタンス変数の値を取得して返します。
...
オブジェクトのインスタンス変数の値を取得して返します。
インスタンス変数が定義されていなければ nil を返します。
@param var インスタンス変数名を文字列か Symbol で指定します。
//emlist[][ruby]{
class Foo
def initialize
@......foo = 1
end
end
obj = Foo.new
p obj.instance_variable_get("@foo") #=> 1
p obj.instance_variable_get(:@foo) #=> 1
p obj.instance_variable_get(:@bar) #=> nil
//}
@see Object#instance_variable_set,Object#instance_variables,Object#instance_variable_defined?... -
Object
# must _ include(object) -> true (21135.0) -
自身に与えられたオブジェクトが含まれている場合、検査にパスしたことになります。
...自身に与えられたオブジェクトが含まれている場合、検査にパスしたことになります。
@param object 任意のオブジェクトを指定します。
@raise MiniTest::Assertion 自身が include? メソッドを持たない場合に発生します。......自身に与えられたオブジェクトが含まれていない場合に発生します。
@see MiniTest::Assertions#assert_includes...