Module: Bootstrap
- Defined in:
- lib/bootstrap-sass/engine.rb,
lib/bootstrap-sass/version.rb,
lib/bootstrap-sass-backport.rb
Defined Under Namespace
Modules: Rails
Constant Summary collapse
- VERSION =
'3.3.1.0'
- BOOTSTRAP_SHA =
'9a7e365c2c4360335d25246dac11afb1f577210a'
Class Method Summary collapse
-
.asset_pipeline? ⇒ Boolean
Environment detection helpers.
- .assets_path ⇒ Object
- .compass? ⇒ Boolean
- .fonts_path ⇒ Object
-
.gem_path ⇒ Object
Paths.
- .javascripts_path ⇒ Object
-
.load! ⇒ Object
Inspired by Kaminari.
- .rails? ⇒ Boolean
- .stylesheets_path ⇒ Object
Class Method Details
.asset_pipeline? ⇒ Boolean
Environment detection helpers
33 34 35 |
# File 'lib/bootstrap-sass-backport.rb', line 33 def asset_pipeline? defined?(::Sprockets) end |
.assets_path ⇒ Object
28 29 30 |
# File 'lib/bootstrap-sass-backport.rb', line 28 def assets_path @assets_path ||= File.join gem_path, 'assets' end |
.compass? ⇒ Boolean
37 38 39 |
# File 'lib/bootstrap-sass-backport.rb', line 37 def compass? defined?(::Compass) end |
.fonts_path ⇒ Object
20 21 22 |
# File 'lib/bootstrap-sass-backport.rb', line 20 def fonts_path File.join assets_path, 'fonts' end |
.gem_path ⇒ Object
Paths
12 13 14 |
# File 'lib/bootstrap-sass-backport.rb', line 12 def gem_path @gem_path ||= File. '..', File.dirname(__FILE__) end |
.javascripts_path ⇒ Object
24 25 26 |
# File 'lib/bootstrap-sass-backport.rb', line 24 def javascripts_path File.join assets_path, 'javascripts' end |
.load! ⇒ Object
Inspired by Kaminari
5 6 7 8 9 |
# File 'lib/bootstrap-sass-backport.rb', line 5 def load! register_compass_extension if compass? register_rails_engine if rails? configure_sass end |
.rails? ⇒ Boolean
41 42 43 |
# File 'lib/bootstrap-sass-backport.rb', line 41 def rails? defined?(::Rails) end |
.stylesheets_path ⇒ Object
16 17 18 |
# File 'lib/bootstrap-sass-backport.rb', line 16 def stylesheets_path File.join assets_path, 'stylesheets' end |