Class: Cure::Strategy::ContainStrategyParams
- Inherits:
-
BaseStrategyParams
- Object
- BaseStrategyParams
- Cure::Strategy::ContainStrategyParams
- Defined in:
- lib/cure/strategy/contain_strategy.rb
Instance Attribute Summary collapse
-
#match ⇒ Object
readonly
Returns the value of attribute match.
Attributes inherited from BaseStrategyParams
#force_replace, #options, #replace_partial
Instance Method Summary collapse
-
#initialize(options = nil) ⇒ ContainStrategyParams
constructor
A new instance of ContainStrategyParams.
Methods inherited from BaseStrategyParams
Methods included from Validators
common_validators, instance_variables_hash, register_validator, validate, #validates
Methods included from Validators::Helpers
Constructor Details
#initialize(options = nil) ⇒ ContainStrategyParams
Returns a new instance of ContainStrategyParams.
43 44 45 46 47 48 |
# File 'lib/cure/strategy/contain_strategy.rb', line 43 def initialize(=nil) @match = [:match] # valid? super() end |
Instance Attribute Details
#match ⇒ Object (readonly)
Returns the value of attribute match.
39 40 41 |
# File 'lib/cure/strategy/contain_strategy.rb', line 39 def match @match end |