5041件ヒット
[1-100件を表示]
(0.262秒)
ライブラリ
- ビルトイン (5041)
クラス
-
ARGF
. class (55) - Array (446)
- BasicObject (154)
- Binding (40)
- Class (44)
- Complex (11)
- Data (4)
- Dir (44)
- Enumerator (121)
-
Enumerator
:: Chain (12) -
Enumerator
:: Lazy (33) -
Enumerator
:: Yielder (22) - Fiber (40)
- File (11)
- FrozenError (5)
- Hash (221)
- IO (253)
- Integer (3)
- KeyError (14)
- LocalJumpError (11)
- Method (72)
- Module (364)
- Mutex (2)
- NameError (20)
- NoMethodError (11)
- Numeric (11)
- Object (1002)
-
ObjectSpace
:: WeakMap (22) - Proc (11)
- Range (182)
- Regexp (33)
-
RubyVM
:: InstructionSequence (11) - StopIteration (11)
- String (74)
- Struct (98)
- Symbol (3)
- Thread (73)
-
Thread
:: Mutex (9) -
Thread
:: Queue (27) -
Thread
:: SizedQueue (27) - TracePoint (82)
- UnboundMethod (21)
- UncaughtThrowError (20)
モジュール
- Comparable (13)
- Enumerable (712)
- GC (12)
- Kernel (288)
- Marshal (44)
- ObjectSpace (110)
-
Process
:: GID (11) -
Process
:: UID (11)
キーワード
- ! (11)
- != (11)
- !~ (11)
-
$ -K (4) -
$ > (11) -
$ KCODE (4) -
$ SAFE (4) -
$ stderr (11) -
$ stdin (11) -
$ stdout (11) - % (11)
- < (11)
- << (22)
- <= (11)
- <=> (11)
- == (46)
- === (51)
- =~ (9)
- > (11)
- >= (11)
- ARGF (11)
- ARGV (11)
- BasicObject (11)
- Binding (11)
- DATA (11)
- ENV (11)
- FALSE (8)
- Hash (11)
- Integer (11)
- Method (11)
- NIL (8)
- ObjectSpace (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) -
SCRIPT
_ LINES _ _ (11) - STDERR (11)
- STDIN (11)
- STDOUT (11)
-
TOPLEVEL
_ BINDING (11) - TRUE (8)
- WeakMap (11)
- [] (88)
- []= (11)
-
_ _ id _ _ (11) -
_ _ send _ _ (22) -
_ dump (11) -
_ id2ref (11) - allocate (11)
- args (11)
- at (11)
- begin (11)
-
bind
_ call (10) - binding (11)
- bsearch (44)
- call (22)
- catch (22)
- chdir (22)
- clamp (24)
- class (11)
-
class
_ eval (22) -
class
_ exec (11) -
class
_ variable _ get (11) -
class
_ variable _ set (11) -
class
_ variables (11) - clone (22)
- collect (33)
-
compare
_ by _ identity (11) -
const
_ defined? (11) -
const
_ get (11) -
const
_ set (11) -
const
_ source _ location (5) - constants (22)
-
count
_ objects (11) - cycle (22)
- default (22)
-
define
_ finalizer (22) -
define
_ method (22) -
define
_ singleton _ method (22) - delete (44)
-
delete
_ at (11) - deq (18)
- detect (22)
- dig (27)
- disable (22)
- display (11)
- dump (22)
- dup (11)
- each (50)
-
each
_ byte (22) -
each
_ object (44) -
each
_ with _ object (22) - enable (22)
- end (11)
- entries (11)
-
enum
_ for (33) - eql? (46)
- equal? (33)
- eval (44)
- exclusive (11)
-
exit
_ value (11) - extend (11)
-
extend
_ object (11) - extended (11)
- feed (11)
- fetch (73)
-
fetch
_ values (18) - filter (30)
-
filter
_ map (10) - find (22)
-
find
_ all (22) - first (55)
-
for
_ fd (11) - force (11)
- format (11)
- freeze (11)
- frozen? (11)
-
garbage
_ collect (11) - getbyte (11)
- getc (11)
- gets (11)
-
global
_ variables (11) - grep (22)
-
grep
_ v (22) -
handle
_ interrupt (11) - hash (11)
- index (7)
- initialize (11)
-
initialize
_ copy (11) - inject (33)
- inspect (16)
-
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)
- irb (8)
-
is
_ a? (11) - itself (11)
- key (18)
- keys (11)
-
kind
_ of? (11) - lambda (13)
- last (33)
-
latest
_ gc _ info (11) - load (11)
-
local
_ variable _ get (11) -
local
_ variables (11) - loop (11)
- map (33)
-
marshal
_ dump (11) -
marshal
_ load (11) - match (33)
- max (118)
-
max
_ by (44) - method (11)
-
method
_ missing (11) - methods (11)
- min (118)
-
min
_ by (44) - minmax (42)
-
minmax
_ by (22) -
module
_ eval (22) -
module
_ exec (11) - name (11)
- new (55)
- next (11)
- nil? (11)
-
object
_ id (11) - open (77)
- p (11)
- parameters (39)
- partition (22)
- peek (11)
-
pending
_ interrupt? (11) - pipe (88)
- pop (29)
- popen (77)
- pp (7)
-
private
_ instance _ methods (11) -
private
_ methods (11) - proc (14)
-
protected
_ instance _ methods (11) -
protected
_ methods (11) - public (23)
-
public
_ constant (9) -
public
_ instance _ method (11) -
public
_ instance _ methods (11) -
public
_ method (11) -
public
_ methods (11) -
public
_ send (22) - putc (33)
- raise (15)
-
read
_ nonblock (11) - readline (11)
- receiver (42)
- reduce (33)
- rehash (11)
- reject (33)
-
remove
_ class _ variable (11) -
remove
_ const (11) -
remove
_ instance _ variable (11) - replace (11)
-
require
_ relative (11) -
respond
_ to? (11) -
respond
_ to _ missing? (11) - restore (11)
- result (11)
- resume (11)
-
return
_ value (11) - rewind (6)
- sample (22)
- select (55)
- self (11)
- send (22)
- shift (40)
-
singleton
_ class (11) -
singleton
_ method (11) -
singleton
_ method _ added (11) -
singleton
_ method _ removed (11) -
singleton
_ method _ undefined (11) -
singleton
_ methods (11) - slice (11)
- slice! (33)
- sort (22)
-
sort
_ by (22) - sprintf (11)
- stat (11)
- store (11)
- sum (38)
- switch (22)
- synchronize (11)
- tag (10)
- taint (9)
- tainted? (9)
- tally (8)
- tap (11)
- then (12)
-
thread
_ variable _ get (11) -
to
_ a (33) -
to
_ ary (11) -
to
_ enum (33) -
to
_ hash (11) -
to
_ int (11) -
to
_ io (11) -
to
_ proc (14) -
to
_ regexp (11) -
to
_ s (16) -
to
_ str (11) - transfer (3)
- trust (9)
-
try
_ convert (14) -
undefine
_ finalizer (11) - union (6)
- unpack1 (8)
- untaint (9)
- untrust (9)
- untrusted? (9)
-
used
_ modules (8) - value (21)
- values (22)
-
values
_ at (22) -
with
_ index (22) -
with
_ object (22) -
write
_ nonblock (11) - yield (22)
-
yield
_ self (14) - zip (44)
検索結果
先頭5件
-
Object (52000.0)
-
全てのクラスのスーパークラス。 オブジェクトの一般的な振舞いを定義します。
全てのクラスのスーパークラス。
オブジェクトの一般的な振舞いを定義します。
このクラスのメソッドは上書きしたり未定義にしない限り、すべてのオブジェクトで使用することができます。 -
Object
# object _ id -> Integer (44279.0) -
各オブジェクトに対して一意な整数を返します。あるオブジェクトに対し てどのような整数が割り当てられるかは不定です。
...。
Rubyでは、(Garbage Collectされていない)アクティブなオブジェクト間で
重複しない整数(object_id)が各オブジェクトにひとつずつ割り当てられています。この
メソッドはその値を返します。
TrueClass, FalseClass, NilClass, Symbol, Integ......er クラス
のインスタンスなど 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
# instance _ variable _ set(var , value) -> object (35225.0) -
オブジェクトのインスタンス変数 var に値 value を設定します。
...か Symbol で指定します。
@param value 設定する値です。
@return 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#insta......nce_variable_get,Object#instance_variables,Object#instance_variable_defined?... -
Object
# instance _ variable _ get(var) -> object | nil (35219.0) -
オブジェクトのインスタンス変数の値を取得して返します。
...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#i......nstance_variables,Object#instance_variable_defined?... -
Object
# public _ send(name , *args) -> object (35208.0) -
オブジェクトの public メソッド name を args を引数にして呼び出し、メソッ ドの実行結果を返します。
...の public メソッド name を args を引数にして呼び出し、メソッ
ドの実行結果を返します。
ブロック付きで呼ばれたときはブロックもそのまま引き渡します。
//emlist[][ruby]{
1.public_send(:+, 2) # => 3
//}
@param name 文字列かSymbol で指......しなかった場合に発生します。
@raise NoMethodError protected メソッドや private メソッドに対して実行
した場合に発生します。
//emlist[][ruby]{
1.public_send(:puts, "hello") # => NoMethodError
//}
@see BasicObject#__send__, Object#send... -
Object
# public _ send(name , *args) { . . . . } -> object (35208.0) -
オブジェクトの public メソッド name を args を引数にして呼び出し、メソッ ドの実行結果を返します。
...の public メソッド name を args を引数にして呼び出し、メソッ
ドの実行結果を返します。
ブロック付きで呼ばれたときはブロックもそのまま引き渡します。
//emlist[][ruby]{
1.public_send(:+, 2) # => 3
//}
@param name 文字列かSymbol で指......しなかった場合に発生します。
@raise NoMethodError protected メソッドや private メソッドに対して実行
した場合に発生します。
//emlist[][ruby]{
1.public_send(:puts, "hello") # => NoMethodError
//}
@see BasicObject#__send__, Object#send... -
Object
# remove _ instance _ variable(name) -> object (35201.0) -
オブジェクトからインスタンス変数 name を取り除き、そのインス タンス変数に設定されていた値を返します。
...ない場合に発生します。
//emlist[][ruby]{
class Foo
def foo
@foo = 1
p remove_instance_variable(:@foo) #=> 1
p remove_instance_variable(:@foo) # instance variable @foo not defined (NameError)
end
end
Foo.new.foo
//}
@see Module#remove_class_variable,Module#remove_const... -
Object
:: TOPLEVEL _ BINDING -> Binding (35200.0) -
トップレベルでの Binding オブジェクト。
...トップレベルでの Binding オブジェクト。
詳細は Binding を参照してください。... -
Object
# instance _ variable _ defined?(var) -> bool (35130.0) -
インスタンス変数 var が定義されていたら真を返します。
...を文字列か Symbol で指定します。
//emlist[][ruby]{
class Fred
def initialize(p1, p2)
@a, @b = p1, p2
end
end
fred = Fred.new('cat', 99)
p fred.instance_variable_defined?(:@a) #=> true
p fred.instance_variable_defined?("@b") #=> true
p fred.instance_variable_defined?("@c")......#=> false
//}
@see Object#instance_variable_get,Object#instance_variable_set,Object#instance_variables... -
Object
# instance _ variables -> [Symbol] (35112.0) -
オブジェクトのインスタンス変数名をシンボルの配列として返します。
...列として返します。
//emlist[][ruby]{
obj = Object.new
obj.instance_eval { @foo, @bar = nil }
p obj.instance_variables
#=> [:@foo, :@bar]
//}
@see Object#instance_variable_get, Kernel.#local_variables, Kernel.#global_variables, Module.constants, Module#constants, Module#class_variables...