396件ヒット
[201-300件を表示]
(0.130秒)
ライブラリ
- ビルトイン (18)
- delegate (240)
- forwardable (48)
- openssl (12)
-
shell
/ command-processor (12) - weakref (24)
クラス
- Delegator (168)
- Module (12)
- Proc (6)
-
Shell
:: CommandProcessor (12) - SimpleDelegator (36)
- WeakRef (12)
モジュール
- Forwardable (24)
- Kernel (12)
-
OpenSSL
:: OCSP (12) - SingleForwardable (24)
キーワード
- ! (12)
- != (12)
- == (12)
- DelegateClass (12)
- Delegator (12)
-
NEWS for Ruby 2
. 7 . 0 (6) - NODELEGATED (12)
- NoDelegateMethods (6)
- Ruby用語集 (12)
- SimpleDelegator (12)
- WeakRef (12)
-
_ _ getobj _ _ (36) -
_ _ setobj _ _ (24) -
add
_ delegate _ command _ to _ shell (6) - freeze (12)
-
instance
_ delegate (12) -
marshal
_ dump (12) -
marshal
_ load (12) -
method
_ missing (12) - methods (12)
- new (12)
-
protected
_ methods (12) -
public
_ methods (12) -
respond
_ to? (12) -
respond
_ to _ missing? (12) -
ruby 1
. 8 . 3 feature (12) -
ruby2
_ keywords (18) -
single
_ delegate (12)
検索結果
先頭5件
-
SimpleDelegator
. new(obj) -> object (14100.0) -
メソッドを委譲するオブジェクトの設定と、 メソッド委譲を行うためのクラスメソッドの定義を行います。
...メソッドを委譲するオブジェクトの設定と、
メソッド委譲を行うためのクラスメソッドの定義を行います。
@param obj 委譲先のオブジェクト
@see Delegator.new... -
SimpleDelegator (14006.0)
-
Delegator クラスを継承し、シンプルなメソッド委譲を実現した具象クラス。
...Delegator クラスを継承し、シンプルなメソッド委譲を実現した具象クラス。
委譲先に指定されたオブジェクトへメソッドの実行を委譲します。
例:
//emlist{
require 'delegate'
foo = Object.new
def foo.test
p 25
end
foo2 = SimpleDelegator.new(fo......o)
foo2.test # => 25
//}... -
Delegator (14000.0)
-
サブクラスにメソッド委譲の仕組みを提供する抽象クラス。
...サブクラスにメソッド委譲の仕組みを提供する抽象クラス。
メソッド委譲を行う場合は、本クラスを継承しDelegator#__getobj__を再定義する必要があります。
具体的な使用例については、SimpleDelegatorを参照してください。... -
Forwardable
# instance _ delegate(hash) -> () (12214.0) -
メソッドの委譲先を設定します。
...で指定します。
//emlist[例][ruby]{
require 'forwardable'
class Zap
extend Forwardable
delegate :length => :@str
delegate [:first, :last] => :@arr
def initialize
@arr = %w/foo bar baz/
@str = "world"
end
end
zap = Zap.new
zap.length # => 5
zap.first # => "... -
SingleForwardable
# single _ delegate(hash) -> () (12208.0) -
メソッドの委譲先を設定します。
...メソッドの委譲先を設定します。
@param hash 委譲先のメソッドがキー、委譲先のオブジェクトが値の
Hash を指定します。キーは Symbol、
String かその配列で指定します。
@see Forwardable#delegate... -
OpenSSL
:: OCSP :: NODELEGATED -> Integer (12200.0) -
delegated trust を許可しないことを意味します。
...delegated trust を許可しないことを意味します。
このフラグ定数は使われていません。... -
Delegator
# marshal _ dump -> object (11100.0) -
シリアライゼーションをサポートするためにDelegator#__getobj__ が返すオブジェクトを返します。
...シリアライゼーションをサポートするためにDelegator#__getobj__ が返すオブジェクトを返します。... -
Delegator
# marshal _ load(obj) -> object (11100.0) -
シリアライズされたオブジェクトから、Delegator#__getobj__ が返すオブジェクトを再現します。
...シリアライズされたオブジェクトから、Delegator#__getobj__ が返すオブジェクトを再現します。
@param obj Delegator#marshal_dumpの戻り値のコピー... -
Delegator
# ! -> bool (11000.0) -
自身を否定します。
自身を否定します。