Method: Mailman::Router#add_route

Defined in:
lib/mailman/router.rb

#add_route(route) ⇒ Mailman::Route

Adds a route to the router.

Parameters:

Returns:

  • (Mailman::Route)

    the route object that was added (allows chaining).



30
31
32
# File 'lib/mailman/router.rb', line 30

def add_route(route)
  @routes.push(route)[-1]
end