Class: ActionDispatch::Journey::Route::VerbMatchers::Unknown
- Inherits:
-
Object
- Object
- ActionDispatch::Journey::Route::VerbMatchers::Unknown
- Defined in:
- lib/action_dispatch/journey/route.rb
Instance Attribute Summary collapse
-
#verb ⇒ Object
readonly
Returns the value of attribute verb.
Instance Method Summary collapse
- #call(request) ⇒ Object
-
#initialize(verb) ⇒ Unknown
constructor
A new instance of Unknown.
Constructor Details
#initialize(verb) ⇒ Unknown
Returns a new instance of Unknown.
27 28 29 |
# File 'lib/action_dispatch/journey/route.rb', line 27 def initialize(verb) @verb = verb end |
Instance Attribute Details
#verb ⇒ Object (readonly)
Returns the value of attribute verb.
25 26 27 |
# File 'lib/action_dispatch/journey/route.rb', line 25 def verb @verb end |
Instance Method Details
#call(request) ⇒ Object
31 |
# File 'lib/action_dispatch/journey/route.rb', line 31 def call(request); @verb == request.request_method; end |