Module: Blacklight::IconHelperBehavior
- Included in:
- BlacklightHelperBehavior
- Defined in:
- app/helpers/blacklight/icon_helper_behavior.rb
Overview
Module to help generate icon helpers for SVG images
Instance Method Summary collapse
-
#blacklight_icon(icon_name, **kwargs) ⇒ String
Returns the raw SVG (String) for a Blacklight Icon.
Instance Method Details
#blacklight_icon(icon_name, **kwargs) ⇒ String
Returns the raw SVG (String) for a Blacklight Icon
10 11 12 |
# File 'app/helpers/blacklight/icon_helper_behavior.rb', line 10 def blacklight_icon(icon_name, **kwargs) render "Blacklight::Icons::#{icon_name.to_s.camelize}Component".constantize.new(**kwargs) end |