4件ヒット
[1-4件を表示]
(0.053秒)
クラス
- Delegator (3)
モジュール
- Kernel (1)
キーワード
- DelegateClass (1)
-
protected
_ methods (1) -
public
_ methods (1) -
respond
_ to _ missing? (1)
検索結果
先頭4件
-
Delegator
# public _ methods(all = true) -> [Symbol] (18346.0) -
そのオブジェクトが理解できる public メソッド名の一覧を返します。
そのオブジェクトが理解できる public メソッド名の一覧を返します。
@param all 偽を指定すると __getobj__ のスーパークラスで定義されたメソッドを除きます。
@see Object#public_methods -
Delegator
# respond _ to _ missing?(m , include _ private) -> bool (376.0) -
@param m メソッド名を指定します。
@param m メソッド名を指定します。
@param include_private 真を指定すると private メソッドも調べます。 -
Delegator
# protected _ methods(all = true) -> [Symbol] (346.0) -
そのオブジェクトが理解できる protected メソッド名の一覧を返します。
そのオブジェクトが理解できる protected メソッド名の一覧を返します。
@param all 偽を指定すると __getobj__ のスーパークラスで定義されたメソッドを除きます。
@see Object#protected_methods -
Kernel
# DelegateClass(superclass) -> object (328.0) -
クラス superclass のインスタンスへメソッドを委譲するクラスを定義し、 そのクラスを返します。
...クラスを定義し、
そのクラスを返します。
@param superclass 委譲先となるクラス
例:
//emlist{
require 'delegate'
class ExtArray < DelegateClass(Array)
def initialize
super([])
end
end
a = ExtArray.new
p a.class # => ExtArray
a.push 25
p a # => [25]
//}...