Class: Amanzi::SLD::ElementWrapper

Inherits:
Object
  • Object
show all
Includes:
Logger
Defined in:
lib/amanzi/sld.rb

Direct Known Subclasses

FilterBuilder, PropertyFilterBuilder, RuleBuilder

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Logger

#puts

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

#elementObject (readonly)

Returns the value of attribute element.



80
81
82
# File 'lib/amanzi/sld.rb', line 80

def element
  @element
end