Class: Amanzi::SLD::ElementWrapper
- Inherits:
-
Object
- Object
- Amanzi::SLD::ElementWrapper
- Includes:
- Logger
- Defined in:
- lib/amanzi/sld.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#element ⇒ Object
readonly
Returns the value of attribute element.
Instance Method Summary collapse
-
#initialize(element) ⇒ ElementWrapper
constructor
A new instance of ElementWrapper.
- #method_missing(symbol, *args, &block) ⇒ Object
Methods included from Logger
Constructor Details
#initialize(element) ⇒ ElementWrapper
Returns a new instance of ElementWrapper.
81 82 83 |
# File 'lib/amanzi/sld.rb', line 81 def initialize(element) @element = element end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(symbol, *args, &block) ⇒ Object
84 85 86 87 |
# File 'lib/amanzi/sld.rb', line 84 def method_missing(symbol,*args,&block) puts "Method '#{symbol}' missing on Element Wrapper: #{self.inspect}" element.send(symbol,*args,&block) end |
Instance Attribute Details
#element ⇒ Object (readonly)
Returns the value of attribute element.
80 81 82 |
# File 'lib/amanzi/sld.rb', line 80 def element @element end |