Method: Puppet::Network::HTTP::Route#initialize
- Defined in:
- lib/puppet/network/http/route.rb
#initialize(path_matcher) ⇒ Route
Returns a new instance of Route.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/puppet/network/http/route.rb', line 14 def initialize(path_matcher) @path_matcher = path_matcher @method_handlers = { :GET => NO_HANDLERS, :HEAD => NO_HANDLERS, :OPTIONS => NO_HANDLERS, :POST => NO_HANDLERS, :PUT => NO_HANDLERS, :DELETE => NO_HANDLERS } @chained = [] end |