Module: Iconpark::Helpers
- Defined in:
- lib/iconpark/helpers.rb
Instance Method Summary collapse
Instance Method Details
#icon(name, theme: Iconpark.default_theme, **html_options) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/iconpark/helpers.rb', line 4 def icon name, theme: Iconpark.default_theme, ** .force_array! :class Iconpark..force_array! :class .reverse_deep_merge! Iconpark. [:class] << theme content_tag 'svg', ** do tag 'use', href: asset_path("#{name}.svg##{name}") end end |