Class: Ruckus::StructureProxies::ValueProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/ruckus/structure/structureproxies.rb

Instance Method Summary collapse

Constructor Details

#initialize(target) ⇒ ValueProxy

Returns a new instance of ValueProxy.



4
# File 'lib/ruckus/structure/structureproxies.rb', line 4

def initialize(target); @t = target; end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(meth, *args) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/ruckus/structure/structureproxies.rb', line 5

def method_missing(meth, *args)
    if meth.to_s.ends_with? "="
        @t.send(meth, *args)
    else
        @t.send(meth).send(:value)
    end
end