Class: Funnel::Routing::Route
- Inherits:
-
Object
- Object
- Funnel::Routing::Route
- Defined in:
- lib/funnel/routing/route.rb
Instance Method Summary collapse
- #handler ⇒ Object
-
#initialize(path, opts) ⇒ Route
constructor
A new instance of Route.
Constructor Details
#initialize(path, opts) ⇒ Route
Returns a new instance of Route.
7 8 9 10 |
# File 'lib/funnel/routing/route.rb', line 7 def initialize path, opts @opts = opts || {} @opts[:path] = path end |
Instance Method Details
#handler ⇒ Object
12 13 14 |
# File 'lib/funnel/routing/route.rb', line 12 def handler @opts[:handler] end |