Module: GlyphHelper

Defined in:
app/helpers/glyph_helper.rb

Instance Method Summary collapse

Instance Method Details

#glyph(*names) ⇒ Object

Examples

glyph(:share_alt) # => <i class=“icon-share-alt”></i> glyph(:lock, :white) # => <i class=“icon-lock icon-white”></i>



8
9
10
# File 'app/helpers/glyph_helper.rb', line 8

def glyph(*names)
   :i, nil, class: names.map{|name| "icon-#{name.to_s.gsub('_','-')}" }
end