Class: Beds::CLI::Scaffold
- Inherits:
-
Object
- Object
- Beds::CLI::Scaffold
- Defined in:
- lib/scaffold.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ Scaffold
constructor
A new instance of Scaffold.
Constructor Details
#initialize(options) ⇒ Scaffold
Returns a new instance of Scaffold.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/scaffold.rb', line 4 def initialize() @options = { :viewdir => "./views", :public => "./public", :controllers => "./controllers", :routefile => "./scaffold.rb", :list => true, :save => true, :template => true, :new => true, :index => true, :run_hooks => true, :exclude => [] }; @options[:assets] = "#{@options[:public]}/assets" () load_models make_files run_hooks if @options[:run_hooks] end |