Class: Hpricot::STag

Inherits:
BaseEle
  • Object
show all
Defined in:
lib/amrita2/testsupport.rb

Instance Method Summary collapse

Instance Method Details

#attributes_as_htmlObject



19
20
21
22
23
24
25
26
27
# File 'lib/amrita2/testsupport.rb', line 19

def attributes_as_html
  if @raw_attributes
     @raw_attributes.keys.sort.map do |aname|
       aval = @raw_attributes[aname]
       " #{aname}" +
         (aval ? "=#{html_quote(aval)}" : "")
     end.join
  end
end