Class: Perennial::Proxy

Inherits:
Object show all
Defined in:
lib/perennial/core_ext/proxy.rb

Overview

a super simple proxy class.

Direct Known Subclasses

DelegateProxy

Instance Attribute Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args, &blk) ⇒ Object (protected)



11
12
13
# File 'lib/perennial/core_ext/proxy.rb', line 11

def method_missing(m, *args, &blk)
  __proxy_target__.send(m, *args, &blk)
end

Instance Attribute Details

#__proxy_target__Object

Returns the value of attribute proxy_target.



7
8
9
# File 'lib/perennial/core_ext/proxy.rb', line 7

def __proxy_target__
  @__proxy_target__
end