Sha256: e6a850aa81a474678c61a52d514786ab727eebbb5b871d888067ba044c72baeb
Contents?: true
Size: 288 Bytes
Versions: 3
Compression:
Stored size: 288 Bytes
Contents
module GlyphHelper # ==== Examples # glyph(:share_alt) # # => <i class="icon-share-alt"></i> # glyph(:lock, :white) # # => <i class="icon-lock icon-white"></i> def glyph(*names) content_tag :i, nil, :class => names.map{|name| "icon-#{name.to_s.gsub('_','-')}" } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bootstrap-sass-extras-0.0.5 | app/helpers/glyph_helper.rb |
bootstrap-sass-extras-0.0.4 | app/helpers/glyph_helper.rb |
bootstrap-sass-extras-0.0.3 | app/helpers/glyph_helper.rb |