Module: Facades
- Extended by:
- Facades
- Included in:
- Facades
- Defined in:
- lib/facades/support/rails.rb,
lib/facades.rb,
lib/facades/config.rb,
lib/facades/helpers.rb,
lib/facades/version.rb,
lib/facades/patterns.rb,
lib/facades/patterns/tabs.rb,
lib/facades/helpers/layout.rb,
lib/facades/sass_extensions.rb,
lib/facades/helpers/frontend.rb,
lib/facades/support/middleman.rb,
lib/facades/helpers/navigation.rb,
lib/facades/helpers/notifications.rb,
lib/facades/sass_extensions/color.rb,
lib/facades/sass_extensions/icons.rb,
lib/facades/sass_extensions/functions.rb,
lib/facades/sass_extensions/conversions.rb
Overview
Extensions to sass’s unit conversion and manipulation functionality.
Defined Under Namespace
Modules: Config, Helpers, Middleman, Patterns, SassExtensions Classes: Engine
Constant Summary collapse
- VERSION =
"1.1.0"
Instance Method Summary collapse
-
#app_path ⇒ Object
Path to the app dir for the Rails Engine.
-
#config {|Config| ... } ⇒ Object
Accessor for the config.
-
#icon_packs ⇒ Object
Icon data for available icon packs.
-
#icon_path ⇒ Object
Where to find icon data.
-
#image_path ⇒ Object
Where image assets are stored.
-
#scss_path ⇒ Object
Where to load the SASS files.
-
#view_path ⇒ Object
Path to any relevant Rails views.
Instance Method Details
#app_path ⇒ Object
Path to the app dir for the Rails Engine
13 14 15 |
# File 'lib/facades.rb', line 13 def app_path File.("../../app", __FILE__) end |
#config {|Config| ... } ⇒ Object
Accessor for the config
21 22 23 24 |
# File 'lib/facades.rb', line 21 def config return Config unless block_given? yield Config end |
#icon_packs ⇒ Object
Icon data for available icon packs
54 55 56 |
# File 'lib/facades.rb', line 54 def icon_packs @icon_packs ||= ActiveSupport::HashWithIndifferentAccess.new end |
#icon_path ⇒ Object
Where to find icon data
62 63 64 |
# File 'lib/facades.rb', line 62 def icon_path File.join(File.("../../src", __FILE__), 'icons') end |
#image_path ⇒ Object
Where image assets are stored.
46 47 48 |
# File 'lib/facades.rb', line 46 def image_path File.join(File.("../../src", __FILE__), 'images') end |
#scss_path ⇒ Object
Where to load the SASS files.
38 39 40 |
# File 'lib/facades.rb', line 38 def scss_path File.join(File.("../../src", __FILE__), 'scss') end |
#view_path ⇒ Object
Path to any relevant Rails views
30 31 32 |
# File 'lib/facades.rb', line 30 def view_path File.join(File.("../../app", __FILE__), 'views') end |