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

Instance Method Details

#app_pathObject

Path to the app dir for the Rails Engine



13
14
15
# File 'lib/facades.rb', line 13

def app_path
  File.expand_path("../../app", __FILE__)
end

#config {|Config| ... } ⇒ Object

Accessor for the config

Yields:



21
22
23
24
# File 'lib/facades.rb', line 21

def config
  return Config unless block_given?
  yield Config
end

#icon_packsObject

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_pathObject

Where to find icon data



62
63
64
# File 'lib/facades.rb', line 62

def icon_path
  File.join(File.expand_path("../../src", __FILE__), 'icons')
end

#image_pathObject

Where image assets are stored.



46
47
48
# File 'lib/facades.rb', line 46

def image_path
  File.join(File.expand_path("../../src", __FILE__), 'images')
end

#scss_pathObject

Where to load the SASS files.



38
39
40
# File 'lib/facades.rb', line 38

def scss_path
  File.join(File.expand_path("../../src", __FILE__), 'scss')
end

#view_pathObject

Path to any relevant Rails views



30
31
32
# File 'lib/facades.rb', line 30

def view_path
  File.join(File.expand_path("../../app", __FILE__), 'views')
end