Sha256: cd6f3fd6b9288a34034947a77e52f55051dbaf0562f4469f2d5dea3cf64da2b2
Contents?: true
Size: 287 Bytes
Versions: 2
Compression:
Stored size: 287 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
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
twitter-bootstrap-rails-2.1.4 | app/helpers/glyph_helper.rb |
twitter-bootstrap-turbo-2.1.3 | app/helpers/glyph_helper.rb |