Class: BlockHTML::Attrs
- Inherits:
-
Hash
- Object
- Hash
- BlockHTML::Attrs
- Defined in:
- lib/block-html.rb
Instance Method Summary collapse
Instance Method Details
#to_s ⇒ Object
95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/block-html.rb', line 95 def to_s unless empty? ' ' + sort do |a, b| a.to_s <=> b.to_s end.map do |key, val| '%s="%s"' % [key, val] end.join(' ') else '' end end |