Module: FluentIcons
- Includes:
- ActionView::Helpers::TagHelper
- Defined in:
- lib/fluent-icons.rb,
lib/fluent-icons/fluent.rb,
lib/fluent-icons/helper.rb,
lib/fluent-icons/railtie.rb,
lib/fluent-icons/version.rb
Defined Under Namespace
Constant Summary collapse
- SYMBOLS =
JSON.parse(data).freeze
- FLUENT_UI_ICONS_VERSION =
'1.1.167'.freeze
- VERSION =
'1.0.1.167'.freeze
Instance Method Summary collapse
- #fluent(symbol, options = {}) ⇒ Object (also: #fluent_icon)
Instance Method Details
#fluent(symbol, options = {}) ⇒ Object Also known as: fluent_icon
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fluent-icons/helper.rb', line 9 def fluent(symbol, = {}) return '' if symbol.nil? cache_key = [symbol, ] unless (tag = fluent_helper_cache[cache_key]) fluent_helper_cache[cache_key] = FluentIcons::Fluent.new(symbol, ).to_svg end tag end |