module BootstrapIconsHelper

Constants

VERSION

Public Instance Methods

bootstrap_icon(symbol, options = {}) click to toggle source
# File lib/bootstrap-icons-helper/helper.rb, line 7
def bootstrap_icon(symbol, options = {})
  return "" if symbol.nil?

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