Class: Rack::BlacklistCookies::BaseScrubber
- Inherits:
-
Object
- Object
- Rack::BlacklistCookies::BaseScrubber
- Defined in:
- lib/rack/blacklist_cookies/scrubber.rb
Overview
The Scrubber class is responsible for removing any unwanted cookies from a given cookies header. The base class provides the main #scrub method, while the subclasses are responsible for being able to deal with parsing the Request and Response headers and associated config.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
Instance Method Summary collapse
-
#initialize(env, cookies_header) ⇒ BaseScrubber
constructor
A new instance of BaseScrubber.
- #to_s ⇒ Object
Constructor Details
#initialize(env, cookies_header) ⇒ BaseScrubber
Returns a new instance of BaseScrubber.
10 11 12 13 |
# File 'lib/rack/blacklist_cookies/scrubber.rb', line 10 def initialize(env, ) @env = env @cookies_header = end |
Instance Attribute Details
#env ⇒ Object (readonly)
Returns the value of attribute env.
8 9 10 |
# File 'lib/rack/blacklist_cookies/scrubber.rb', line 8 def env @env end |
Instance Method Details
#to_s ⇒ Object
15 16 17 18 |
# File 'lib/rack/blacklist_cookies/scrubber.rb', line 15 def to_s return @cookies_header unless blacklist scrub end |