Class: Cure::Strategy::SplitStrategyParams
- Inherits:
-
BaseStrategyParams
- Object
- BaseStrategyParams
- Cure::Strategy::SplitStrategyParams
- Defined in:
- lib/cure/strategy/split_strategy.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Attributes inherited from BaseStrategyParams
#force_replace, #options, #replace_partial
Instance Method Summary collapse
-
#initialize(options = nil) ⇒ SplitStrategyParams
constructor
A new instance of SplitStrategyParams.
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) ⇒ SplitStrategyParams
Returns a new instance of SplitStrategyParams.
49 50 51 52 53 54 55 |
# File 'lib/cure/strategy/split_strategy.rb', line 49 def initialize(=nil) @token = [:token] @index = [:index] # valid? super() end |
Instance Attribute Details
#index ⇒ Object (readonly)
Returns the value of attribute index.
44 45 46 |
# File 'lib/cure/strategy/split_strategy.rb', line 44 def index @index end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
44 45 46 |
# File 'lib/cure/strategy/split_strategy.rb', line 44 def token @token end |