# File lib/facets/more/xmlhelper.rb, line 62 def element( tag, body=nil, atts={} ) atts = atts.collect{ |k,v| %{ #{k}="#{v}"} }.join('') if body "<#{tag}#{atts}>#{body}</#{tag}>" else "<#{tag}#{atts} />" end end