Class: Ruckus::StructureProxies::NodeProxy

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

Instance Method Summary collapse

Constructor Details

#initialize(target) ⇒ NodeProxy

Returns a new instance of NodeProxy.



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

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

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(meth, *args) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/ruckus/structure/structureproxies.rb', line 16

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