This method is deprecated or moved on the latest stable version.
The last existing version (v4.1.8) is shown here.
to_s()
public
Returns a textual representation of the node
# File actionview/lib/action_view/vendor/html-scanner/html/node.rb, line 313
def to_s
if @closing == :close
"</#{@name}>"
else
s = "<#{@name}"
@attributes.each do |k,v|
s << " #{k}"
s << "=\"#{v}\"" if String === v
end
s << " /" if @closing == :self
s << ">"
@children.each { |child| s << child.to_s }
s << "</#{@name}>" if @closing != :self && [email protected]?
s
end
end