Class: Arbre::HTML::Attributes
- Inherits:
-
Hash
- Object
- Hash
- Arbre::HTML::Attributes
- Defined in:
- lib/active_admin/arbre/html/attributes.rb
Instance Method Summary collapse
- #html_escape(s) ⇒ Object protected
- #to_s ⇒ Object
Instance Method Details
#html_escape(s) ⇒ Object (protected)
14 15 16 |
# File 'lib/active_admin/arbre/html/attributes.rb', line 14 def html_escape(s) ERB::Util.html_escape(s) end |
#to_s ⇒ Object
6 7 8 9 10 |
# File 'lib/active_admin/arbre/html/attributes.rb', line 6 def to_s self.collect do |name, value| "#{html_escape(name)}=\"#{html_escape(value)}\"" end.join(" ") end |