Class: Waves::Matchers::Accept
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #call(request) ⇒ Object
-
#initialize(options) ⇒ Accept
constructor
A new instance of Accept.
Methods inherited from Base
Constructor Details
#initialize(options) ⇒ Accept
Returns a new instance of Accept.
7 8 9 10 11 12 13 |
# File 'lib/matchers/accept.rb', line 7 def initialize( ) @constraints = { :accept => [ :accept ], :lang => [ :lang ], :charset => [ :charset ] } end |
Instance Method Details
#call(request) ⇒ Object
15 |
# File 'lib/matchers/accept.rb', line 15 def call( request ) ; test( request ) ; end |