Module: Ramazon::AbstractElement::ClassMethods
- Defined in:
- lib/ramazon/abstract_element.rb
Instance Method Summary collapse
Instance Method Details
#abstract_element(name, type, options = {}) ⇒ Object
8 9 10 |
# File 'lib/ramazon/abstract_element.rb', line 8 def abstract_element(name, type, = {}) element(name, type, .merge(:parser => :abstract_parse, :raw => true)) end |
#abstract_parse(xml, options = {}) ⇒ Object
12 13 14 15 |
# File 'lib/ramazon/abstract_element.rb', line 12 def abstract_parse(xml, = {}) tag XML::Parser.string(xml).parse.root.name parse(xml) end |