るりまサーチ

最速Rubyリファレンスマニュアル検索!
36件ヒット [1-36件を表示] (0.112秒)
トップページ > クエリ:t[x] > クエリ:String[x] > モジュール:Forwardable[x]

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. t61string new
  5. fiddle type_size_t

ライブラリ

キーワード

検索結果

Forwardable#delegate(hash) -> () (6107.0)

メソッドの委譲先を設定します。

...。キーは Symbol、
String
かその配列で指定します。


例:

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 # => "foo"
zap.last # => "baz"...

Forwardable#instance_delegate(hash) -> () (6107.0)

メソッドの委譲先を設定します。

...。キーは Symbol、
String
かその配列で指定します。


例:

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 # => "foo"
zap.last # => "baz"...

Forwardable::FORWARDABLE_VERSION -> String (202.0)

forwardable ライブラリのバージョンを返します。

...
forwardable
ライブラリのバージョンを返します。...