Class: Jellyfish::Rewrite
- Inherits:
-
Struct
- Object
- Struct
- Jellyfish::Rewrite
- Defined in:
- lib/jellyfish/rewrite.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
Returns the value of attribute app.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
Instance Attribute Details
#app ⇒ Object
Returns the value of attribute app
3 4 5 |
# File 'lib/jellyfish/rewrite.rb', line 3 def app @app end |
#to ⇒ Object
Returns the value of attribute to
3 4 5 |
# File 'lib/jellyfish/rewrite.rb', line 3 def to @to end |
Instance Method Details
#call(env) ⇒ Object
4 5 6 |
# File 'lib/jellyfish/rewrite.rb', line 4 def call env app.call(env.merge('PATH_INFO' => "#{env['PATH_INFO']}#{to}")) end |