るりまサーチ

最速Rubyリファレンスマニュアル検索!
627件ヒット [601-627件を表示] (0.011秒)
トップページ > クエリ:singleton[x]

別のキーワード

  1. singleton dup
  2. singleton clone
  3. singleton instance
  4. object define_singleton_method
  5. _builtin define_singleton_method

ライブラリ

クラス

モジュール

検索結果

<< < ... 5 6 7 >>

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...
<< < ... 5 6 7 >>