Class: Granite::ContextProxy::Proxy
- Inherits:
-
Object
- Object
- Granite::ContextProxy::Proxy
- Defined in:
- lib/granite/context_proxy/proxy.rb
Overview
Proxy which wraps the following method calls with BA context.
Instance Method Summary collapse
-
#initialize(klass, context) ⇒ Proxy
constructor
A new instance of Proxy.
- #inspect ⇒ Object
- #respond_to_missing?(*args) ⇒ Boolean
Constructor Details
#initialize(klass, context) ⇒ Proxy
Returns a new instance of Proxy.
6 7 8 9 |
# File 'lib/granite/context_proxy/proxy.rb', line 6 def initialize(klass, context) @klass = klass @context = context end |
Instance Method Details
#inspect ⇒ Object
11 12 13 |
# File 'lib/granite/context_proxy/proxy.rb', line 11 def inspect "<#{@klass}ContextProxy #{@context}>" end |
#respond_to_missing?(*args) ⇒ Boolean
25 26 27 |
# File 'lib/granite/context_proxy/proxy.rb', line 25 def respond_to_missing?(*args) @klass.respond_to?(*args) end |