Module: Bh::GlyphiconHelper
Overview
Provides methods to include Glyphicons.
Instance Method Summary collapse
-
#glyphicon(name = nil, options = {}) ⇒ String
Returns an HTML block tag that follows the Bootstrap documentation on how to display glyphicons.
Instance Method Details
#glyphicon(name = nil, options = {}) ⇒ String
Returns an HTML block tag that follows the Bootstrap documentation on how to display glyphicons.
18 19 20 21 22 |
# File 'lib/bh/helpers/glyphicon_helper.rb', line 18 def glyphicon(name = nil, = {}) append_class! , 'glyphicon' append_class! , "glyphicon-#{name.to_s.gsub '_', '-'}" if name content_tag :span, nil, end |