372件ヒット
[301-372件を表示]
(0.054秒)
ライブラリ
- delegate (228)
- forwardable (120)
クラス
- Delegator (168)
- SimpleDelegator (36)
モジュール
- Forwardable (48)
- SingleForwardable (48)
キーワード
- ! (12)
- != (12)
- == (12)
- Forwardable (12)
- SimpleDelegator (12)
- SingleForwardable (12)
-
_ _ getobj _ _ (24) -
_ _ setobj _ _ (24) -
def
_ delegator (24) -
def
_ delegators (24) -
def
_ instance _ delegator (12) -
def
_ instance _ delegators (12) -
def
_ single _ delegator (12) -
def
_ single _ delegators (12) - delegate (12)
- freeze (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)
検索結果
先頭5件
-
SingleForwardable (6024.0)
-
オブジェクトに対し、メソッドの委譲機能を定義するモジュールです。
...て extend して使います。
例:
require 'forwardable'
g = Goo.new
g.extend SingleForwardable
g.def_delegator("@out", :puts)
g.puts ...
また、SingleForwardable はクラスやモジュールに対して以下のようにする事もできます。
require 'forwardable'
clas......ion
def self.service
puts "serviced!"
end
end
module Facade
extend SingleForwardable
def_delegator :Implementation, :service
end
Facade.service # => serviced!
もし Forwardable と SingleForwardable の両方を使いたい場合、
def_instance_delegator と def_......single_delegator メソッドの方を呼び出して
ください。... -
Forwardable (6006.0)
-
クラスに対し、メソッドの委譲機能を定義するモジュールです。
...ct#extend して使います。Module#include でないところに注意して下さい。
//emlist[例][ruby]{
require 'forwardable'
class Foo
extend Forwardable
def_delegators("@out", "printf", "print")
def_delegators(:@in, :gets)
def_delegator(:@contents, :[], "content_at")
end
f = F... -
SimpleDelegator
# _ _ getobj _ _ -> object (6006.0) -
委譲先のオブジェクトを返します。
...委譲先のオブジェクトを返します。
@see Delegator#__getobj__... -
SimpleDelegator
. new(obj) -> object (6006.0) -
メソッドを委譲するオブジェクトの設定と、 メソッド委譲を行うためのクラスメソッドの定義を行います。
...メソッドを委譲するオブジェクトの設定と、
メソッド委譲を行うためのクラスメソッドの定義を行います。
@param obj 委譲先のオブジェクト
@see Delegator.new... -
SimpleDelegator
# _ _ setobj _ _ (obj) -> object (6000.0) -
委譲先のオブジェクトを obj に変更します。
委譲先のオブジェクトを obj に変更します。
メソッド委譲を行うためのクラスメソッドの再定義は行われないことに注意してください。
メソッド委譲を行うためのクラスメソッドの定義は生成時にのみ行われます。
そのため、以前の委譲先オブジェクトと
obj の間で呼び出せるメソッドに違いがあった場合は、
何かしらの例外が発生する可能性があります。
@param obj 委譲先のオブジェクト
@return 変更後の委譲先オブジェクト -
ruby 1
. 8 . 3 feature (48.0) -
ruby 1.8.3 feature *((<ruby 1.8 feature>)) *((<ruby 1.8.2 feature>))
...ckward-compatibility
* 影響の範囲が小さいと思われる変更もこちら
* [change]: 変更されたクラス/メソッドなど(互換性のない変更)
* [obsolete]: 廃止された(される予定の)機能
* [platform]: 対応プラットフォームの追加
bundled lib......以下を参考にしてください。
soap4r-1.5.3がruby-1.8.2、soap4r-1.5.5がruby-1.8.3にbundleされています。
* ((<URL:http://dev.ctor.org/soap4r/wiki/Changes-154>))
* ((<URL:http://dev.ctor.org/soap4r/wiki/Changes-155>))
== 1.8.2 (2004-12-25) -> 1.8.3 (2005-09-21)
=== 2005-09-19
:......$ ruby-1.8.2 r.rb
r.rb:1: premature end of regular expression: /[\c\\]/
r.rb:2: invalid regular expression; '\' can't be last character: /\c\\/
$ ruby-1.8.3 r.rb
0
0
=== 2005-06-30
: Delegator [lib] [compat]
Delegator オブジェクトが生成された後に定...