Method: HTMLTree::Element#write

Defined in:
lib/web/htmltools/element.rb

#write(io) ⇒ Object

Print me (and my descendents) on the given IO stream.



228
229
230
231
232
233
234
# File 'lib/web/htmltools/element.rb', line 228

def write(io)
  io << self
  children.each { |t| t.write(io) }
  unless tag_info.is_empty_element
    io.puts( "</#{tag()}>" )
  end
end