Class: Dryv::Rules::Then
- Inherits:
-
Composite
- Object
- Dryv::Rule
- Binary
- Composite
- Dryv::Rules::Then
- Defined in:
- lib/dryv/rules/then.rb
Instance Attribute Summary
Attributes inherited from Dryv::Rule
Instance Method Summary collapse
Methods inherited from Binary
Methods inherited from Dryv::Rule
#+, #add_error, #and, #clone, #initialize, #name, #or, #then
Constructor Details
This class inherits a constructor from Dryv::Rule
Instance Method Details
#valid? ⇒ Boolean
5 6 7 8 9 |
# File 'lib/dryv/rules/then.rb', line 5 def valid? return true if (!lt.valid? || rt.valid?) errors.merge!(rt.errors) false end |