Method: Dao::Route#initialize
- Defined in:
- lib/dao/route.rb
#initialize(path) ⇒ Route
Returns a new instance of Route.
41 42 43 44 45 46 |
# File 'lib/dao/route.rb', line 41 def initialize(path) replace(path.to_s) @keys = Route.keys_for(self).freeze @pattern = Route.pattern_for(self).freeze freeze end |