Class: Rasti::Form::ValidationError

Inherits:
Types::CompoundError
  • Object
show all
Defined in:
lib/rasti/form/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#scopeObject (readonly)

Returns the value of attribute scope.



6
7
8
# File 'lib/rasti/form/errors.rb', line 6

def scope
  @scope
end