Module: Rubicons::Devicon::RailsHelper
- Included in:
- Phlex
- Defined in:
- lib/rubicons/devicon/rails_helper.rb
Overview
Rails view helper for Devicon icons
Instance Method Summary collapse
Instance Method Details
#devicon_icon(name, options = {}) ⇒ Object
7 8 9 |
# File 'lib/rubicons/devicon/rails_helper.rb', line 7 def devicon_icon(name, = {}) Rubicons::Devicon.icon(name, **).html_safe end |
#devicon_icon!(name, options = {}) ⇒ Object
11 12 13 |
# File 'lib/rubicons/devicon/rails_helper.rb', line 11 def devicon_icon!(name, = {}) Rubicons::Devicon.icon!(name, **).html_safe end |