Module: WeatherIcons::Rails
- Defined in:
- lib/weather-icons/rails.rb,
lib/weather-icons/rails/helpers.rb,
lib/weather-icons/rails/railtie.rb,
lib/weather-icons/rails/version.rb
Defined Under Namespace
Modules: IconHelpers
Classes: Railtie
Constant Summary
collapse
- VERSION =
"0.1.1"
Class Method Summary
collapse
Class Method Details
.assets_path ⇒ Object
26
27
28
|
# File 'lib/weather-icons/rails.rb', line 26
def assets_path
@assets_path ||= File.join(gem_path, 'vendor', 'assets')
end
|
.compass? ⇒ Boolean
30
31
32
|
# File 'lib/weather-icons/rails.rb', line 30
def compass?
defined?(::Compass)
end
|
.fonts_path ⇒ Object
22
23
24
|
# File 'lib/weather-icons/rails.rb', line 22
def fonts_path
File.join(assets_path, 'fonts')
end
|
.gem_path ⇒ Object
14
15
16
|
# File 'lib/weather-icons/rails.rb', line 14
def gem_path
@gem_path ||= File.expand_path('..', File.dirname(__FILE__))
end
|
.load! ⇒ Object
4
5
6
7
8
9
10
11
12
|
# File 'lib/weather-icons/rails.rb', line 4
def load!
if rails?
register_rails_engine
end
if compass?
register_compass_extension
end
end
|
.rails? ⇒ Boolean
34
35
36
|
# File 'lib/weather-icons/rails.rb', line 34
def rails?
defined?(::Rails)
end
|
.stylesheets_path ⇒ Object
18
19
20
|
# File 'lib/weather-icons/rails.rb', line 18
def stylesheets_path
File.join(assets_path, 'stylesheets')
end
|