Class: Hanami::Routing::Parsers Private
- Inherits:
-
Object
- Object
- Hanami::Routing::Parsers
- Defined in:
- lib/hanami/routing/parsers.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- CONTENT_TYPE =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'CONTENT_TYPE'.freeze
- MEDIA_TYPE_MATCHER =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
/\s*[;,]\s*/.freeze
- RACK_INPUT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'rack.input'.freeze
- ROUTER_PARAMS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'router.params'.freeze
- ROUTER_PARSED_BODY =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'router.parsed_body'.freeze
- FALLBACK_KEY =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'_'.freeze
Instance Method Summary collapse
- #call(env) ⇒ Object private
-
#initialize(parsers) ⇒ Parsers
constructor
private
A new instance of Parsers.
Constructor Details
#initialize(parsers) ⇒ Parsers
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Parsers.
33 34 35 36 |
# File 'lib/hanami/routing/parsers.rb', line 33 def initialize(parsers) @parsers = prepare(parsers) _redefine_call end |
Instance Method Details
#call(env) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
40 41 42 |
# File 'lib/hanami/routing/parsers.rb', line 40 def call(env) env end |