Class: FnordMetric::Context::Proxy

Inherits:
Object
  • Object
show all
Defined in:
lib/fnordmetric/context.rb

Instance Method Summary collapse

Constructor Details

#initialize(_ref) ⇒ Proxy

Returns a new instance of Proxy.



7
8
9
# File 'lib/fnordmetric/context.rb', line 7

def initialize(_ref)
  @ref = _ref
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object



11
12
13
# File 'lib/fnordmetric/context.rb', line 11

def method_missing(method, *args, &block)
  @ref.dispatch(method, *args, &block)
end