Class: Builder::XmlBase

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

Instance Method Summary collapse

Instance Method Details

#<<(text) ⇒ Object

Make generated xml easier to read by indenting appended xml strings out to the current indent level.



24
25
26
# File 'lib/breadmachine.rb', line 24

def <<(text)
  _text(text.indent(@level * @indent))
end