Class: Arbre::HTML::Attributes
- Inherits:
-
Hash
- Object
- Hash
- Arbre::HTML::Attributes
- Defined in:
- lib/arbre/html/attributes.rb
Instance Method Summary collapse
Instance Method Details
#to_s ⇒ Object
6 7 8 9 10 |
# File 'lib/arbre/html/attributes.rb', line 6 def to_s flatten_hash.compact.map do |name, value| "#{html_escape(name)}=\"#{html_escape(value)}\"" end.compact.join ' ' end |