1256件ヒット
[1-100件を表示]
(0.053秒)
種類
- インスタンスメソッド (947)
- クラス (131)
- 特異メソッド (75)
- モジュール関数 (60)
- 定数 (43)
クラス
- Array (103)
- BasicObject (12)
- Dir (12)
-
Encoding
:: UndefinedConversionError (60) -
Enumerator
:: Lazy (51) - File (48)
- Float (40)
- IO (24)
- Integer (24)
- Method (12)
- Module (84)
- Mutex (2)
- Numeric (24)
- Object (27)
- Rational (24)
- Regexp (12)
- Set (3)
- String (74)
- Thread (36)
-
Thread
:: Mutex (10) - Time (39)
- UnboundMethod (179)
- UncaughtThrowError (33)
モジュール
- Enumerable (84)
-
File
:: Constants (24) - GC (12)
- Kernel (24)
- ObjectSpace (24)
- Process (24)
キーワード
- == (12)
- ConverterNotFoundError (12)
- EHOSTUNREACH (12)
- ENETUNREACH (12)
- ENOTUNIQ (12)
- EPROCUNAVAIL (12)
- EPROGUNAVAIL (12)
- EUNATCH (12)
-
LOCK
_ UN (12) - ROUNDS (7)
- RuntimeError (12)
- TRUNC (12)
- UnboundMethod (12)
- UncaughtThrowError (11)
- UndefinedConversionError (12)
- WUNTRACED (12)
-
add
_ trace _ func (12) - arity (12)
- at (15)
- bind (12)
-
bind
_ call (12) - chunk (36)
-
chunk
_ while (21) -
clock
_ gettime (12) - clone (12)
- count (96)
-
count
_ objects (12) -
destination
_ encoding (12) -
destination
_ encoding _ name (12) - eql? (12)
-
error
_ char (12) - flock (12)
- hash (12)
- inspect (12)
-
instance
_ method (12) -
method
_ undefined (12) -
module
_ function (36) - name (12)
-
original
_ name (12) - owner (12)
- parameters (12)
-
public
_ instance _ method (12) - round (69)
- run (12)
-
set
_ trace _ func (24) -
singleton
_ method _ undefined (12) -
source
_ encoding (12) -
source
_ encoding _ name (12) -
source
_ location (12) - sunday? (12)
-
super
_ method (11) - tag (11)
-
to
_ s (23) - truncate (72)
- unbind (12)
-
undef
_ method (12) -
undefine
_ finalizer (12) - undump (8)
- ungetbyte (12)
- ungetc (12)
-
unicode
_ normalize (11) -
unicode
_ normalize! (11) -
unicode
_ normalized? (11) - union (22)
- uniq (66)
- uniq! (24)
- unlink (24)
- unlock (12)
- unpack (12)
- unpack1 (9)
- unshift (12)
- untaint (9)
-
untrace
_ var (12) - untrust (9)
- untrusted? (9)
- value (11)
検索結果
先頭5件
-
UnboundMethod (12002.0)
-
レシーバを持たないメソッドを表すクラスです。 呼び出すためにはレシーバにバインドする必要があります。
...す。
Module#instance_method や
Method#unbind により生成し、後で
UnboundMethod#bind によりレシーバを
割り当てた Method オブジェクトを作ることができます。
//emlist[例: Method クラスの冒頭にある例を UnboundMethod で書くと以下のようにな......thods[2].bind(Foo.new).call # => "bar"
p methods[3].bind(Foo.new).call # => "baz"
//}
//emlist[例: 以下はメソッドの再定義を UnboundMethod を使って行う方法です。普通は alias や super を使います。][ruby]{
class Foo
def foo
p :foo
end
@@orig_foo =... -
Method
# unbind -> UnboundMethod (6302.0) -
self のレシーバとの関連を取り除いた UnboundMethod オブ ジェクトを生成して返します。
...との関連を取り除いた UnboundMethod オブ
ジェクトを生成して返します。
//emlist[例][ruby]{
class Foo
def foo
"foo"
end
end
m = Foo.new.method(:foo) # => #<Method: Foo#foo>
unbound_method = m.unbind # => #<UnboundMethod: Foo#foo>
unbound_method.bind(Foo.new) # => #<... -
UnboundMethod
# clone -> UnboundMethod (6202.0) -
自身を複製した UnboundMethod オブジェクトを作成して返します。
...自身を複製した UnboundMethod オブジェクトを作成して返します。
//emlist[例][ruby]{
a = String.instance_method(:size)
b = a.clone
a == b # => true
//}... -
UnboundMethod
# super _ method -> UnboundMethod | nil (6202.0) -
self 内で super を実行した際に実行されるメソッドを UnboundMethod オブジェ クトにして返します。
...self 内で super を実行した際に実行されるメソッドを UnboundMethod オブジェ
クトにして返します。
@see Method#super_method... -
File
:: Constants :: LOCK _ UN -> Integer (6103.0) -
アンロック。File#flock で使用します。
アンロック。File#flock で使用します。 -
Array
# count -> Integer (6102.0) -
レシーバの要素数を返します。
...ブロックを評価して真になった要素の個数を
カウントして返します。
@param item カウント対象となる値。
//emlist[例][ruby]{
ary = [1, 2, 4, 2.0]
ary.count # => 4
ary.count(2) # => 2
ary.count{|x|x%2==0} # => 3
//}
@see Enumerable#count... -
Array
# count {|obj| . . . } -> Integer (6102.0) -
レシーバの要素数を返します。
...ブロックを評価して真になった要素の個数を
カウントして返します。
@param item カウント対象となる値。
//emlist[例][ruby]{
ary = [1, 2, 4, 2.0]
ary.count # => 4
ary.count(2) # => 2
ary.count{|x|x%2==0} # => 3
//}
@see Enumerable#count... -
Array
# count(item) -> Integer (6102.0) -
レシーバの要素数を返します。
...ブロックを評価して真になった要素の個数を
カウントして返します。
@param item カウント対象となる値。
//emlist[例][ruby]{
ary = [1, 2, 4, 2.0]
ary.count # => 4
ary.count(2) # => 2
ary.count{|x|x%2==0} # => 3
//}
@see Enumerable#count... -
Array
# union(*other _ arrays) -> Array (6102.0) -
集合の和演算です。self と other_arrays の配列にどれかに含まれる要素を 全て含む新しい配列を返します。重複する要素は取り除かれます。
...ect#hash により行われます。
@param other_arrays 0個以上の配列を指定します。
//emlist[例][ruby]{
["a", "b", "c"].union([ "c", "d", "a" ]) #=> ["a", "b", "c", "d"]
["a"].union(["e", "b"], ["a", "c", "b"]) #=> ["a", "e", "b", "c"]
["a"].union # => ["a"]
//}
@see Array#|...