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