Class: Waves::Matchers::Requested
- Defined in:
- lib/waves/matchers/requested.rb
Overview
Matches the MIME-type of the URI path (using the extension) and, failing that, falls back to the accept header
Use :extension or :ext for matching the extension itself or :accept to match the actual HTTP Accept header
Instance Method Summary collapse
-
#[](request) ⇒ Object
Proc-like interface.
- #call(request) ⇒ Object
-
#initialize(val) ⇒ Requested
constructor
A new instance of Requested.
Constructor Details
#initialize(val) ⇒ Requested
Returns a new instance of Requested.
14 |
# File 'lib/waves/matchers/requested.rb', line 14 def initialize( val ) ; @val = val ; end |