Class: Rack::EncodingGuard::Strategy
- Inherits:
-
Object
- Object
- Rack::EncodingGuard::Strategy
- Defined in:
- lib/rack/encoding_guard/strategy.rb
Direct Known Subclasses
Constant Summary collapse
- PROCESSIBLE_KEYS =
%w( HTTP_REFERER PATH_INFO REQUEST_URI REQUEST_PATH QUERY_STRING )
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Strategy
constructor
A new instance of Strategy.
- #process(env) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Strategy
Returns a new instance of Strategy.
14 15 16 |
# File 'lib/rack/encoding_guard/strategy.rb', line 14 def initialize( = {}) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
12 13 14 |
# File 'lib/rack/encoding_guard/strategy.rb', line 12 def @options end |
Instance Method Details
#process(env) ⇒ Object
18 19 20 |
# File 'lib/rack/encoding_guard/strategy.rb', line 18 def process(env) yield end |