123456789_123456789_123456789_123456789_123456789_

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

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: actionpack/lib/action_dispatch/journey/route.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(verb) ⇒ Unknown

[ GitHub ]

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

def initialize(verb)
  @verb = verb
end

Instance Attribute Details

#verb (readonly)

[ GitHub ]

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

attr_reader :verb

Instance Method Details

#call(request)

[ GitHub ]

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

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