Class: Hanami::Routing::Parsers Private

Inherits:
Object
  • Object
show all
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.

Since:

  • 0.2.0

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.

Since:

  • 0.2.0

'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.

Since:

  • 0.2.0

/\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.

Since:

  • 0.2.0

'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.

Since:

  • 0.2.0

'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.

Since:

  • 0.2.0

'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.

Since:

  • 0.2.0

'_'.freeze

Instance Method Summary collapse

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.

Since:

  • 0.2.0



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.

Since:

  • 0.2.0



40
41
42
# File 'lib/hanami/routing/parsers.rb', line 40

def call(env)
  env
end