Module: BootstrapIconsHelper

Includes:
ActionView::Helpers::TagHelper
Defined in:
lib/bootstrap-icons-helper/helper.rb,
lib/bootstrap-icons-helper/railtie.rb,
lib/bootstrap-icons-helper/version.rb

Defined Under Namespace

Classes: Railtie

Constant Summary collapse

VERSION =
"2.0.2".freeze

Instance Method Summary collapse

Instance Method Details

#bootstrap_icon(symbol, options = {}) ⇒ Object



7
8
9
10
11
12
# File 'lib/bootstrap-icons-helper/helper.rb', line 7

def bootstrap_icon(symbol, options = {})
  return "" if symbol.nil?

  icon = BootstrapIcons::BootstrapIcon.new(symbol, options)
  (:svg, icon.path.html_safe, icon.options)
end