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.
5 6 7 8 |
# File 'lib/funnel/routing/route.rb', line 5 def initialize path, opts @opts = opts || {} @opts[:path] = path end |
Instance Method Details
#handler ⇒ Object
10 11 12 |
# File 'lib/funnel/routing/route.rb', line 10 def handler @opts[:handler] end |