Module: Hobix::Out::XmlQuick

Defined in:
lib/hobix/out/atom.rb

Instance Method Summary collapse

Instance Method Details

#x(title, txt, attrs = nil) ⇒ Object



24
25
26
27
28
29
# File 'lib/hobix/out/atom.rb', line 24

def x( title, txt, attrs = nil )
    e = REXML::Element.new title
    e.text = txt if txt
    attrs.each { |a,b| e.attributes[a] = b } if attrs
    self << e
end