Module: Rubicons::BoxIcons::RailsHelper

Included in:
Phlex
Defined in:
lib/rubicons/box_icons/rails_helper.rb

Overview

Rails view helper for Box Icons

Instance Method Summary collapse

Instance Method Details

#box_icon(name, options = {}) ⇒ Object



7
8
9
# File 'lib/rubicons/box_icons/rails_helper.rb', line 7

def box_icon(name, options = {})
  Rubicons::BoxIcons.icon(name, **options).html_safe
end

#box_icon!(name, options = {}) ⇒ Object



11
12
13
# File 'lib/rubicons/box_icons/rails_helper.rb', line 11

def box_icon!(name, options = {})
  Rubicons::BoxIcons.icon!(name, **options).html_safe
end