Class: Normalizator::BaseRule
- Inherits:
-
Object
- Object
- Normalizator::BaseRule
- Defined in:
- lib/rules/base_rule.rb
Direct Known Subclasses
Constant Summary collapse
- DEFAULT_OPTIONS =
{ return_original_on_failure: true, default_value_on_failure: nil, runs_on_derived_value: false }.freeze
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ BaseRule
constructor
A new instance of BaseRule.
Constructor Details
#initialize(options = {}) ⇒ BaseRule
Returns a new instance of BaseRule.
12 13 14 |
# File 'lib/rules/base_rule.rb', line 12 def initialize( = {}) = DEFAULT_OPTIONS.merge() end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/rules/base_rule.rb', line 4 def end |