Class: Ichiban::Config
- Inherits:
-
Object
- Object
- Ichiban::Config
- Defined in:
- lib/ichiban/config.rb
Instance Attribute Summary collapse
Class Method Summary collapse
Instance Attribute Details
#dependencies ⇒ Object
17 18 19 |
# File 'lib/ichiban/config.rb', line 17 def dependencies @dependencies || raise("Ichiban.config.dependencies not set. Set inside block in config.rb like this: cfg.dependencies = {...}") end |
#js_manifests ⇒ Object
23 24 25 |
# File 'lib/ichiban/config.rb', line 23 def js_manifests @js_manifests || raise("Ichiban.config.js_manifests not set. Set inside block in config.rb like this: cfg.js_manifests = {...}") end |
#relative_url_root ⇒ Object
29 30 31 |
# File 'lib/ichiban/config.rb', line 29 def relative_url_root @relative_url_root || raise("Ichiban.config.relative_url_root not set. Set inside block in config.rb like this: cfg.relative_url_root = '/'") end |
#scss_root_files ⇒ Object
35 36 37 |
# File 'lib/ichiban/config.rb', line 35 def scss_root_files @scss_root_files || raise("Ichiban.config.scss_root_files not set. Set inside block in config.rb like this: cfg.scss_root_files = ['screen.scss']") end |
Class Method Details
.load_file ⇒ Object
9 10 11 12 13 |
# File 'lib/ichiban/config.rb', line 9 def self.load_file config_file = File.join(Ichiban.project_root, 'config.rb') raise "#{config_file} must exist" unless File.exist?(config_file) load config_file end |