module Forwarder

Constants

VERSION

Public Instance Methods

forward(*args, &blk) click to toggle source

How forward works: The parameters are analyzed by the Params object by means of the `prepare_forward` method. The `prepare_forward` method makes havy use of the Argument object which implements a query API for what the given arguments allow the forwarder to do. And eventually the `forward!` method realises the delegation.

# File lib/forwarder.rb, line 11
def forward *args, &blk
  params = Forwarder::Params.new self
  params.prepare_forward( *args, &blk )
  params.forward!
end
forward_all(*args, &blk) click to toggle source
# File lib/forwarder.rb, line 17
def forward_all *args, &blk
  params = Forwarder::Params.new self
  opts   = args.pop
  params.prepare_forward( args, opts, &blk )
  params.forward!
end