Class: Webruby::App
- Inherits:
-
Object
- Object
- Webruby::App
- Defined in:
- lib/webruby/app.rb
Class Method Summary collapse
Class Method Details
.config ⇒ Object
4 5 6 |
# File 'lib/webruby/app.rb', line 4 def config @config ||= Webruby::Config.new end |
.setup(&block) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/webruby/app.rb', line 8 def setup(&block) block.call(config) # load rake tasks require 'rake' Dir.glob("#{CURRENT_DIR}/webruby/rake/*.rake") { |f| load f; } end |