Class: ActionDispatch::Journey::Route::VerbMatchers::Unknown

Inherits:
Object
  • Object
show all
Defined in:
lib/action_dispatch/journey/route.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(verb) ⇒ Unknown

Returns a new instance of Unknown.



23
24
25
# File 'lib/action_dispatch/journey/route.rb', line 23

def initialize(verb)
  @verb = verb
end

Instance Attribute Details

#verbObject (readonly)

Returns the value of attribute verb.



21
22
23
# File 'lib/action_dispatch/journey/route.rb', line 21

def verb
  @verb
end

Instance Method Details

#call(request) ⇒ Object



27
# File 'lib/action_dispatch/journey/route.rb', line 27

def call(request); @verb === request.request_method; end