Class: Rasti::Form::ValidationError
- Inherits:
-
Types::CompoundError
- Object
- Types::CompoundError
- Rasti::Form::ValidationError
- Defined in:
- lib/rasti/form/errors.rb
Instance Attribute Summary collapse
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Instance Method Summary collapse
-
#initialize(scope, errors) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(scope, errors) ⇒ ValidationError
Returns a new instance of ValidationError.
8 9 10 11 |
# File 'lib/rasti/form/errors.rb', line 8 def initialize(scope, errors) @scope = scope super errors end |
Instance Attribute Details
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
6 7 8 |
# File 'lib/rasti/form/errors.rb', line 6 def scope @scope end |