Class: CachingMatcher::MatcherBase
- Inherits:
-
Object
- Object
- CachingMatcher::MatcherBase
- Defined in:
- lib/caching_matcher/caching_matcher.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cache_key ⇒ Object
readonly
Returns the value of attribute cache_key.
Instance Method Summary collapse
-
#initialize(controller, path_arg) ⇒ MatcherBase
constructor
first argument: controller second arg: either a path string or hash of url options.
Constructor Details
#initialize(controller, path_arg) ⇒ MatcherBase
first argument: controller second arg: either a path string or hash of url options
6 7 8 9 |
# File 'lib/caching_matcher/caching_matcher.rb', line 6 def initialize(controller, path_arg) @controller = controller compute_cache_key(path_arg) end |
Instance Attribute Details
#cache_key ⇒ Object (readonly)
Returns the value of attribute cache_key.
11 12 13 |
# File 'lib/caching_matcher/caching_matcher.rb', line 11 def cache_key @cache_key end |