Module: Bootstrap::IconHelper
- Defined in:
- app/helpers/bootstrap/icon_helper.rb
Overview
Helper methods for Bootstrap icons.
Instance Method Summary collapse
-
#icon(*args) ⇒ String
Returns a Bootstrap icon glyph.
Instance Method Details
#icon(*args) ⇒ String
Returns a Bootstrap icon glyph.
Optionally returns text with icon.
See class documentation (above) for examples.
26 27 28 |
# File 'app/helpers/bootstrap/icon_helper.rb', line 26 def icon(*args) ::Bootstrap::IconRenderer.new(self, *args).html end |