Class: HttpRouter::Route

Inherits:
Object
  • Object
show all
Defined in:
lib/lita/http_route.rb

Overview

An individual HTTP route.

Instance Method Summary collapse

Instance Method Details

#name=(name) ⇒ Object

Sets a name for the route. Monkey patched due to a bug.



8
9
10
11
# File 'lib/lita/http_route.rb', line 8

def name=(name)
  @name = name
  router.named_routes[name] << self if router
end