Exception: InvalidRuleType
- Inherits:
-
StandardError
- Object
- StandardError
- InvalidRuleType
- Defined in:
- lib/validation_profiler/rules/validation_rule_manager.rb
Instance Method Summary collapse
-
#initialize(rule) ⇒ InvalidRuleType
constructor
A new instance of InvalidRuleType.
- #to_s ⇒ Object
Constructor Details
#initialize(rule) ⇒ InvalidRuleType
Returns a new instance of InvalidRuleType.
87 88 89 |
# File 'lib/validation_profiler/rules/validation_rule_manager.rb', line 87 def initialize(rule) @rule = rule end |
Instance Method Details
#to_s ⇒ Object
91 92 93 94 |
# File 'lib/validation_profiler/rules/validation_rule_manager.rb', line 91 def to_s rule = @rule "Validation rule: #{rule} is not a valid type. Rules must inherit from the ValidationRule base class." end |