module FoundationIcons::Sass

Constants

VERSION

Public Class Methods

assets_path() click to toggle source
# File lib/foundation_icons/sass.rb, line 36
def assets_path
  @assets_path ||= File.join(gem_path, 'vendor', 'assets')
end
fonts_path() click to toggle source
# File lib/foundation_icons/sass.rb, line 32
def fonts_path
  File.join(assets_path, 'fonts')
end
gem_path() click to toggle source
# File lib/foundation_icons/sass.rb, line 24
def gem_path
  @gem_path ||= File.expand_path('../..', File.dirname(__FILE__))
end
load!() click to toggle source
# File lib/foundation_icons/sass.rb, line 7
def load!
  if defined?(::Rails)
    require 'sass-rails'
    require 'foundation_icons/sass/rails/engine'
    require 'foundation_icons/sass/rails/railtie'
  end

  if defined?(::Compass)
    ::Compass::Frameworks.register(
      'foundation-icons',
      path: gem_path,
      stylesheets_directory: stylesheets_path,
      templates_directory: File.join(gem_path, 'templates')
    )
  end
end
stylesheets_path() click to toggle source
# File lib/foundation_icons/sass.rb, line 28
def stylesheets_path
  File.join(assets_path, 'stylesheets')
end