Class: Granite::ContextProxy::Proxy

Inherits:
Object
  • Object
show all
Defined in:
lib/granite/context_proxy/proxy.rb

Overview

Proxy which wraps the following method calls with BA context.

Instance Method Summary collapse

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

#inspectObject



11
12
13
# File 'lib/granite/context_proxy/proxy.rb', line 11

def inspect
  "<#{@klass}ContextProxy #{@context}>"
end

#respond_to_missing?(*args) ⇒ Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/granite/context_proxy/proxy.rb', line 25

def respond_to_missing?(*args)
  @klass.respond_to?(*args)
end