Module: SocialGlyphHelper
- Defined in:
- app/helpers/social_glyph_helper.rb
Instance Method Summary collapse
-
#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>.
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 (icon, *args) size = args[0] content_tag :i, nil, :class => "social-icon #{icon} #{size unless size.nil?}" end |