Module: SemanticIconHelper
- Defined in:
- app/helpers/semantic_icon_helper.rb
Instance Method Summary collapse
Instance Method Details
#semantic_icon(*names, id: nil) ⇒ Object
2 3 4 |
# File 'app/helpers/semantic_icon_helper.rb', line 2 def semantic_icon(*names, id: nil) content_tag :i, nil, class: names.map{|name| "#{name.to_s.gsub('_','-')}" } << 'icon', id: id end |