Class: Cure::Strategy::ContainStrategyParams

Inherits:
BaseStrategyParams show all
Defined in:
lib/cure/strategy/contain_strategy.rb

Instance Attribute Summary collapse

Attributes inherited from BaseStrategyParams

#force_replace, #options, #replace_partial

Instance Method Summary collapse

Methods inherited from BaseStrategyParams

#validate_params

Methods included from Validators

common_validators, instance_variables_hash, register_validator, validate, #validates

Methods included from Validators::Helpers

#valid?

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(options=nil)
  @match = options[:match]
  # valid?

  super(options)
end

Instance Attribute Details

#matchObject (readonly)

Returns the value of attribute match.



39
40
41
# File 'lib/cure/strategy/contain_strategy.rb', line 39

def match
  @match
end