Method: ATD::App.req
- Defined in:
- lib/atd.rb
.req ⇒ Object
Generates an instance of Route. Passes all arguments and the block to the constructor and sets the app where it was called from.
167 168 169 170 171 |
# File 'lib/atd.rb', line 167 def request(*args, &block) route = ATD::Route.new(*args, &block) route.app = (self == Object || self == ATD::App ? :DefaultApp : name.to_sym) route end |