Class: Blockenspiel::ProxyDelegator

Inherits:
Object
  • Object
show all
Defined in:
lib/blockenspiel/impl.rb

Overview

Class for proxy delegators. The proxy behavior creates one of these delegators, mixes in the dsl methods, and uses instance_eval to invoke the block. This class delegates non-handled methods to the context object.

Instance Method Summary collapse

Constructor Details

#initialize(delegate_) ⇒ ProxyDelegator

:nodoc:



393
394
395
# File 'lib/blockenspiel/impl.rb', line 393

def initialize(delegate_)
  @_blockenspiel_delegate = delegate_
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(symbol_, *params_, &block_) ⇒ Object



397
398
399
# File 'lib/blockenspiel/impl.rb', line 397

def method_missing(symbol_, *params_, &block_)
  ::Blockenspiel._proxy_dispatch(self, symbol_, params_, block_)
end