Module: Coconut
- Defined in:
- lib/coconut.rb,
lib/coconut/asset.rb,
lib/coconut/config.rb,
lib/coconut/runner.rb,
lib/coconut/version.rb,
lib/coconut/environment.rb
Defined Under Namespace
Classes: Asset, BlankSlate, Config, Environment, Runner
Constant Summary
collapse
- VERSION =
"0.0.1"
Class Method Summary
collapse
Class Method Details
5
6
7
8
|
# File 'lib/coconut.rb', line 5
def self.configure(namespace, &assets)
raise "#{namespace} already has a config method" if namespace.respond_to? :config
define_config_method namespace, Config.new(current_environment, &assets)
end
|
.current_environment ⇒ Object
10
11
12
|
# File 'lib/coconut.rb', line 10
def self.current_environment
ENV['RACK_ENV'] || :development
end
|