Method: HTML::Node#to_s

Defined in:
lib/html/node.rb

#to_sObject

Return a textual representation of the node.



79
80
81
82
83
# File 'lib/html/node.rb', line 79

def to_s
  s = ""
  @children.each { |child| s << child.to_s }
  s
end