別のキーワード
ライブラリ
- ビルトイン (300)
- forwardable (48)
- profiler (6)
-
rdoc
/ context (12) - singleton (48)
クラス
- Array (24)
- BasicObject (36)
- Hash (24)
- Module (72)
- Object (132)
-
RDoc
:: Context (12)
モジュール
- SingleForwardable (48)
- Singleton (36)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) -
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) - Numeric (12)
-
Profiler
_ _ (6) - Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
- Ruby用語集 (12)
- Singleton (12)
- clone (36)
-
def
_ delegator (12) -
def
_ delegators (12) -
def
_ single _ delegator (12) -
def
_ single _ delegators (12) -
define
_ singleton _ method (24) - dup (36)
-
initialize
_ copy (12) - instance (12)
-
irb
/ completion (12) - method (12)
-
method
_ added (12) -
method
_ removed (12) -
method
_ undefined (12) - methods (12)
-
private
_ class _ method (24) -
private
_ methods (12) -
protected
_ methods (12) -
public
_ methods (12) -
rb
_ define _ singleton _ method (12) -
rb
_ obj _ singleton _ methods (12) -
rb
_ singleton _ class (12) -
rb
_ singleton _ class _ attached (12) -
rb
_ singleton _ class _ clone (12) -
rb
_ singleton _ class _ new (12) -
rdoc
/ parser / ruby (12) -
ruby 1
. 8 . 3 feature (12) -
set
_ visibility _ for (12) -
singleton
_ class (12) -
singleton
_ class? (12) -
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) - クラス/メソッドの定義 (12)
検索結果
先頭3件
-
SingleForwardable
# def _ single _ delegator(accessor , method , ali = method) -> () (6.0) -
メソッドの委譲先を設定します。
...のオブジェクトの method へ処理が委譲されるようになります。
委譲元と委譲先のメソッド名が同じ場合は, ali を省略することが可能です。
def_delegator は def_singleton_delegator の別名になります。
@see SingleForwardable#def_delegators... -
SingleForwardable
# def _ single _ delegators(accessor , *methods) -> () (6.0) -
メソッドの委譲先をまとめて設定します。
...た場合に、
委譲先のオブジェクトの同名のメソッドへ処理が委譲されるようになります。
def_delegators は def_singleton_delegators の別名になります。
また、以下の 2 つの例は同じ意味です。
def_delegators :@records, :size, :<<, :map... -
irb
/ completion (6.0) -
irb の completion 機能を提供するライブラリです。
...foo.respond_to?
foo.__id__ foo.inspect foo.send
foo.__send__ foo.instance_eval foo.singleton_methods
foo.class foo.instance_of? foo.taint
foo.clone foo.instance_variables foo.tainted?
foo.display...