Sha256: adcf04e513a10700b4fdb38673071355d4840692dead73afa0089126ad2fae52

Contents?: true

Size: 461 Bytes

Versions: 3

Compression:

Stored size: 461 Bytes

Contents

module GlyphHelper
  # ==== Examples
  #
  # glyph(:search)
  #   => <span class="glyphicon glyphicon-search"></span>
  # glyph(:search, :paperclip)
  #   => <span class="glyphicon glyphicon-search"></span><span class="glyphicon glyphicon-paperclip"></span>

  def glyph(*glyphicon_names)
    safe_join(glyphicon_names.map do |name|
                content_tag :span, nil, class: "glyphicon glyphicon-#{name.to_s.parameterize}"
              end, "")
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bootstrap-sass-extras-0.1.0 app/helpers/glyph_helper.rb
bootstrap-sass-extras-0.0.7 app/helpers/glyph_helper.rb
bootstrap-sass-extras-0.0.6 app/helpers/glyph_helper.rb