Module: SocialGlyphHelper

Defined in:
app/helpers/social_glyph_helper.rb

Instance Method Summary collapse

Instance Method Details

#social_glyph(icon, *args) ⇒ Object

Examples

social_glyph(:dropbox, :large) # => <i class=“social-icon dropbox large”></i> social_glyph(:dropbox) # => <i class=“social-icon dropbox”></i>



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

def social_glyph(icon, *args)
	size = args[0]
	 :i, nil, :class => "social-icon #{icon} #{size unless size.nil?}"
end