Module: Tenon::IconHelper
- Defined in:
- app/helpers/tenon/icon_helper.rb
Instance Method Summary collapse
Instance Method Details
#i(icon, opts = {}) ⇒ Object
3 4 5 |
# File 'app/helpers/tenon/icon_helper.rb', line 3 def i(icon, opts = {}) content_tag(:i, icon, class: "material-icon #{opts[:class] if opts[:class].present?}") end |