Class: Webspicy::Web::Inferer
- Inherits:
-
Rack::Proxy
- Object
- Rack::Proxy
- Webspicy::Web::Inferer
- Defined in:
- lib/webspicy/web/inferer.rb
Instance Attribute Summary collapse
-
#webspicy_config ⇒ Object
readonly
Returns the value of attribute webspicy_config.
-
#webspicy_options ⇒ Object
readonly
Returns the value of attribute webspicy_options.
Instance Method Summary collapse
-
#initialize(config, options = nil) ⇒ Inferer
constructor
A new instance of Inferer.
- #rewrite_env(env) ⇒ Object
- #rewrite_response(triplet) ⇒ Object
Constructor Details
#initialize(config, options = nil) ⇒ Inferer
Returns a new instance of Inferer.
6 7 8 9 10 |
# File 'lib/webspicy/web/inferer.rb', line 6 def initialize(config, = nil) @webspicy_config = config @webspicy_options = || super() end |
Instance Attribute Details
#webspicy_config ⇒ Object (readonly)
Returns the value of attribute webspicy_config.
11 12 13 |
# File 'lib/webspicy/web/inferer.rb', line 11 def webspicy_config @webspicy_config end |
#webspicy_options ⇒ Object (readonly)
Returns the value of attribute webspicy_options.
11 12 13 |
# File 'lib/webspicy/web/inferer.rb', line 11 def @webspicy_options end |
Instance Method Details
#rewrite_env(env) ⇒ Object
13 14 15 16 17 |
# File 'lib/webspicy/web/inferer.rb', line 13 def rewrite_env(env) env = env.merge(static_env) env = handle_path_info(env) env end |
#rewrite_response(triplet) ⇒ Object
19 20 21 |
# File 'lib/webspicy/web/inferer.rb', line 19 def rewrite_response(triplet) triplet end |