Module: FlagIconSass
- Defined in:
- lib/flag-icon-sass.rb,
lib/flag-icon-sass/version.rb,
lib/flag-icon-sass/rails/engine.rb,
lib/flag-icon-sass/rails/helpers.rb,
lib/flag-icon-sass/rails/railtie.rb
Defined Under Namespace
Modules: Rails
Constant Summary collapse
- VERSION =
'1.1.3'.freeze
- FLAG_ICONS_CSS_VERSION =
'1.1.0'.freeze
Class Method Summary collapse
- .assets_path ⇒ Object
-
.gem_path ⇒ Object
Paths.
- .load! ⇒ Object
- .rails? ⇒ Boolean
- .stylesheets_path ⇒ Object
Class Method Details
.assets_path ⇒ Object
20 21 22 |
# File 'lib/flag-icon-sass.rb', line 20 def assets_path @assets_path ||= File.join gem_path, 'assets' end |
.gem_path ⇒ Object
Paths
12 13 14 |
# File 'lib/flag-icon-sass.rb', line 12 def gem_path @gem_path ||= File. '..', File.dirname(__FILE__) end |
.load! ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/flag-icon-sass.rb', line 3 def load! if rails? register_rails_engine end configure_sass end |
.rails? ⇒ Boolean
24 25 26 |
# File 'lib/flag-icon-sass.rb', line 24 def rails? defined?(::Rails) end |
.stylesheets_path ⇒ Object
16 17 18 |
# File 'lib/flag-icon-sass.rb', line 16 def stylesheets_path File.join assets_path, 'stylesheets' end |