Sha256: 4fbad18f98b4d422f96b1cde4baa0853bb4894139e05165b046d510e342b0918

Contents?: true

Size: 344 Bytes

Versions: 14

Compression:

Stored size: 344 Bytes

Contents

module SocialGlyphHelper
  # ==== Examples
  # social_glyph(:dropbox, :large)
  # # => <i class="social-icon dropbox large"></i>
  # social_glyph(:dropbox)
  # # => <i class="social-icon dropbox"></i>

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
groundworkcss-rails-0.2.12 app/helpers/social_glyph_helper.rb
groundworkcss-rails-0.2.11 app/helpers/social_glyph_helper.rb
groundworkcss-rails-0.2.10 app/helpers/social_glyph_helper.rb
groundworkcss-rails-0.2.9 app/helpers/social_glyph_helper.rb
groundworkcss-rails-0.2.8 app/helpers/social_glyph_helper.rb
groundworkcss-rails-0.2.7 app/helpers/social_glyph_helper.rb
groundworkcss-rails-0.2.6 app/helpers/social_glyph_helper.rb
groundworkcss-rails-0.2.5 app/helpers/social_glyph_helper.rb
groundworkcss-rails-0.2.4 app/helpers/social_glyph_helper.rb
groundworkcss-rails-0.2.3 app/helpers/social_glyph_helper.rb
groundworkcss-rails-0.2.2 app/helpers/social_glyph_helper.rb
groundworkcss-rails-0.2.1 app/helpers/social_glyph_helper.rb
groundworkcss-rails-0.2 app/helpers/social_glyph_helper.rb
groundworkcss-rails-0.1 app/helpers/social_glyph_helper.rb