Module: Whereuat

Extended by:
Assets
Defined in:
lib/whereuat.rb,
lib/whereuat/assets.rb,
lib/whereuat/helpers.rb,
lib/whereuat/railtie.rb,
lib/whereuat/rack_app.rb,
lib/whereuat/assets/image.rb,
lib/whereuat/configuration.rb,
lib/whereuat/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

.configurationObject



12
13
14
# File 'lib/whereuat.rb', line 12

def configuration
  @configuration ||= Configuration.new
end

Class Method Details

.assets_pathObject



24
25
26
# File 'lib/whereuat.rb', line 24

def assets_path
  @assets_path ||= gem_root+'assets'
end

.configure {|configuration| ... } ⇒ Object

Yields:



16
17
18
# File 'lib/whereuat.rb', line 16

def configure
  yield(configuration)
end

.gem_rootObject



28
29
30
# File 'lib/whereuat.rb', line 28

def gem_root
  @gem_root ||= Pathname('../..').expand_path(__FILE__)
end

.load_rake_tasks!Object



20
21
22
# File 'lib/whereuat.rb', line 20

def load_rake_tasks!
  load gem_root+'lib/whereuat/tasks.rb'
end