Class: Mappum::RubyXmlTransform
- Inherits:
-
RubyTransform
- Object
- RubyTransform
- Mappum::RubyXmlTransform
- Defined in:
- lib/mappum/xml_transform.rb
Instance Attribute Summary
Attributes inherited from RubyTransform
Instance Method Summary collapse
- #get(object, field) ⇒ Object
-
#initialize(*args) ⇒ RubyXmlTransform
constructor
A new instance of RubyXmlTransform.
Methods inherited from RubyTransform
Constructor Details
#initialize(*args) ⇒ RubyXmlTransform
Returns a new instance of RubyXmlTransform.
161 162 163 |
# File 'lib/mappum/xml_transform.rb', line 161 def initialize(*args) super(*args) end |
Instance Method Details
#get(object, field) ⇒ Object
164 165 166 167 168 169 170 |
# File 'lib/mappum/xml_transform.rb', line 164 def get(object, field) begin super(object, field) rescue NoMethodError super(object, XSD::CodeGen::GenSupport.safemethodname(field.to_s).to_sym) end end |