Module: Hoverboard
- Extended by:
- Assets
- Defined in:
- lib/hoverboard.rb,
lib/hoverboard/assets.rb,
lib/hoverboard/helpers.rb,
lib/hoverboard/railtie.rb,
lib/hoverboard/rack_app.rb,
lib/hoverboard/assets/image.rb,
lib/hoverboard/configuration.rb,
lib/hoverboard/assets/context.rb
Defined Under Namespace
Modules: Assets, Helpers
Classes: Configuration, RackApp, Railtie
Class Attribute Summary collapse
Class Method Summary
collapse
Methods included from Assets
css, css_file, css_template_file, dev_root, inline_css, inline_javascript, javascript, javascript_file, javascript_template_file, mustache, rebuild!, template_ctx
Class Attribute Details
.configuration ⇒ Object
12
13
14
|
# File 'lib/hoverboard.rb', line 12
def configuration
@configuration ||= Configuration.new
end
|
Class Method Details
.assets_path ⇒ Object
24
25
26
|
# File 'lib/hoverboard.rb', line 24
def assets_path
@assets_path ||= gem_root+'assets'
end
|
16
17
18
|
# File 'lib/hoverboard.rb', line 16
def configure
yield(configuration)
end
|
.gem_root ⇒ Object
28
29
30
|
# File 'lib/hoverboard.rb', line 28
def gem_root
@gem_root ||= Pathname('../..').expand_path(__FILE__)
end
|
.load_rake_tasks! ⇒ Object
20
21
22
|
# File 'lib/hoverboard.rb', line 20
def load_rake_tasks!
load gem_root+'lib/hoverboard/tasks.rb'
end
|