Class: Ruckus::StructureProxies::NodeProxy
- Defined in:
- lib/ruckus/structure/structureproxies.rb
Instance Method Summary collapse
-
#initialize(target) ⇒ NodeProxy
constructor
A new instance of NodeProxy.
- #method_missing(meth, *args) ⇒ Object
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 |