lib/hanami/router.rb in hanami-router-1.0.0.beta2 vs lib/hanami/router.rb in hanami-router-1.0.0.beta3

- old
+ new

@@ -3,10 +3,13 @@ require 'hanami/routing/namespace' require 'hanami/routing/resource' require 'hanami/routing/resources' require 'hanami/routing/error' +# Hanami +# +# @since 0.1.0 module Hanami # Rack compatible, lightweight and fast HTTP Router. # # @since 0.1.0 # @@ -81,12 +84,18 @@ # @see Hanami::Router#recognize # @see Hanami::Routing::RecognizedRoute # @see Hanami::Routing::RecognizedRoute#call # @see Hanami::Routing::RecognizedRoute#routable? class NotRoutableEndpointError < Hanami::Routing::Error + # @since 0.5.0 + # @api private REQUEST_METHOD = 'REQUEST_METHOD'.freeze + + # @since 0.5.0 + # @api private PATH_INFO = 'PATH_INFO'.freeze + # @since 0.5.0 def initialize(env) super %(Cannot find routable endpoint for #{ env[REQUEST_METHOD] } "#{ env[PATH_INFO] }") end end