Module: Kickstart::Keywords
- Defined in:
- lib/keywords.rb
Instance Method Summary collapse
-
#controller(name, *args) {|controller| ... } ⇒ Object
call to create a controller.
-
#model(name, *args) {|model| ... } ⇒ Object
call to create a model.
-
#resource(name, *args) {|resource| ... } ⇒ Object
call to create a resource.
Instance Method Details
#controller(name, *args) {|controller| ... } ⇒ Object
call to create a controller
17 18 19 20 21 |
# File 'lib/keywords.rb', line 17 def controller(name, *args, &blk) controller = Controller.new(name) yield(controller) controller.generate end |