Class: Goodsheet::ValidationError
- Inherits:
-
Object
- Object
- Goodsheet::ValidationError
- Defined in:
- lib/goodsheet/validation_error.rb
Instance Method Summary collapse
-
#initialize(line, val_err) ⇒ ValidationError
constructor
A new instance of ValidationError.
- #to_s ⇒ Object
Constructor Details
#initialize(line, val_err) ⇒ ValidationError
Returns a new instance of ValidationError.
4 5 6 7 |
# File 'lib/goodsheet/validation_error.rb', line 4 def initialize(line, val_err) @line = line @val_err = val_err end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/goodsheet/validation_error.rb', line 9 def to_s "line #{@line} is invalid for the following reason(s): #{@val_err..join(', ')}" end |