Module: Helpers::HtmlAttrsMixin
- Defined in:
- lib/helpers.rb
Instance Method Summary collapse
Instance Method Details
#to_html_attrs ⇒ Object
5 6 7 8 9 10 |
# File 'lib/helpers.rb', line 5 def to_html_attrs self.inject(String.new) do |result, pair| key, value = pair result + " #{key}='#{value}'" end end |