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
- .assets_path ⇒ Object
- .fonts_path ⇒ Object
- .gem_path ⇒ Object
- .load! ⇒ Object
- .rails? ⇒ Boolean
- .stylesheets_path ⇒ Object
Class Method Details
.assets_path ⇒ Object
20 21 22 |
# File 'lib/font-awesome-less.rb', line 20 def assets_path @assets_path ||= File.join(gem_path, 'assets') end |
.fonts_path ⇒ Object
16 17 18 |
# File 'lib/font-awesome-less.rb', line 16 def fonts_path File.join(assets_path, 'fonts') end |
.gem_path ⇒ Object
8 9 10 |
# File 'lib/font-awesome-less.rb', line 8 def gem_path @gem_path ||= File.('..', 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
24 25 26 |
# File 'lib/font-awesome-less.rb', line 24 def rails? defined?(::Rails) end |
.stylesheets_path ⇒ Object
12 13 14 |
# File 'lib/font-awesome-less.rb', line 12 def stylesheets_path File.join(assets_path, 'stylesheets') end |