Class: Funnel::Routing::Route

Inherits:
Object
  • Object
show all
Defined in:
lib/funnel/routing/route.rb

Instance Method Summary collapse

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

#handlerObject



10
11
12
# File 'lib/funnel/routing/route.rb', line 10

def handler
  @opts[:handler]
end