Class: CommaParty::XML

Inherits:
Object
  • Object
show all
Defined in:
lib/commaparty/xml.rb

Class Method Summary collapse

Instance Method Summary collapse

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

#callObject



15
16
17
# File 'lib/commaparty/xml.rb', line 15

def call
  @markup.builder.to_xml
end