Class: CommaParty::XML
- Inherits:
-
Object
- Object
- CommaParty::XML
- Defined in:
- lib/commaparty/xml.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(markup) ⇒ XML
constructor
A new instance of XML.
Constructor Details
#initialize(markup) ⇒ XML
Returns a new instance of XML.
11 12 13 |
# File 'lib/commaparty/xml.rb', line 11 def initialize(markup) @markup = CommaParty::Markup.new(markup) end |
Class Method Details
.build(markup) ⇒ Object
7 8 9 |
# File 'lib/commaparty/xml.rb', line 7 def self.build(markup) new(markup).call end |
Instance Method Details
#call ⇒ Object
15 16 17 |
# File 'lib/commaparty/xml.rb', line 15 def call @markup.builder.to_xml end |