Class: Gemstash::RackEnvRewriter
- Inherits:
-
Object
- Object
- Gemstash::RackEnvRewriter
- Defined in:
- lib/gemstash/rack_env_rewriter.rb
Overview
Detects patterns in the Rack env variables related to URI and rewrites them, extracting parameters.
Defined Under Namespace
Classes: Context
Instance Attribute Summary collapse
-
#regexp ⇒ Object
readonly
Returns the value of attribute regexp.
Instance Method Summary collapse
- #for(rack_env) ⇒ Object
-
#initialize(regexp) ⇒ RackEnvRewriter
constructor
A new instance of RackEnvRewriter.
Constructor Details
#initialize(regexp) ⇒ RackEnvRewriter
Returns a new instance of RackEnvRewriter.
10 11 12 |
# File 'lib/gemstash/rack_env_rewriter.rb', line 10 def initialize(regexp) @regexp = regexp end |
Instance Attribute Details
#regexp ⇒ Object (readonly)
Returns the value of attribute regexp.
8 9 10 |
# File 'lib/gemstash/rack_env_rewriter.rb', line 8 def regexp @regexp end |