Module: GlyphHelper
- Defined in:
- app/helpers/glyph_helper.rb
Instance Method Summary collapse
-
#glyph(*names) ⇒ Object
Examples glyph(:share_alt) # => glyph(:lock, :white) # => .
Instance Method Details
#glyph(*names) ⇒ Object
Examples
glyph(:share_alt)
=>
glyph(:lock, :white)
=>
8 9 10 |
# File 'app/helpers/glyph_helper.rb', line 8 def glyph(*names) content_tag :i, nil, :class => names.map{|name| "icon-#{name.to_s.gsub('_','-')}" } end |