Module: FontAwesome::Less

Defined in:
lib/font-awesome-less.rb,
lib/font_awesome/less/version.rb,
lib/font_awesome/less/rails/engine.rb,
lib/font_awesome/less/rails/helpers.rb,
lib/font_awesome/less/rails/railtie.rb

Defined Under Namespace

Modules: Rails

Constant Summary collapse

VERSION =
'4.7.0'

Class Method Summary collapse

Class Method Details

.assets_pathObject



20
21
22
# File 'lib/font-awesome-less.rb', line 20

def assets_path
  @assets_path ||= File.join(gem_path, 'assets')
end

.fonts_pathObject



16
17
18
# File 'lib/font-awesome-less.rb', line 16

def fonts_path
  File.join(assets_path, 'fonts')
end

.gem_pathObject



8
9
10
# File 'lib/font-awesome-less.rb', line 8

def gem_path
  @gem_path ||= File.expand_path('..', File.dirname(__FILE__))
end

.load!Object



4
5
6
# File 'lib/font-awesome-less.rb', line 4

def load!
  register_rails_engine if rails?
end

.rails?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/font-awesome-less.rb', line 24

def rails?
  defined?(::Rails)
end

.stylesheets_pathObject



12
13
14
# File 'lib/font-awesome-less.rb', line 12

def stylesheets_path
  File.join(assets_path, 'stylesheets')
end