Class: Mutations::ValidationException
- Inherits:
-
Object
- Object
- Mutations::ValidationException
- Defined in:
- lib/mutations_validate_outcome.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#inspect ⇒ Object
54 55 56 57 58 59 |
# File 'lib/mutations_validate_outcome.rb', line 54 def inspect # rubocop:disable Style/FormatString oid = '%x' % (object_id << 1) "#<Mutations::ValidationException:0x#{oid.rjust(14, '0')} @errors=<#{errors}>>" # rubocop:enable Style/FormatString end |
#message ⇒ Object
61 62 63 64 65 |
# File 'lib/mutations_validate_outcome.rb', line 61 def errors.map do |k, v| "#{k}: “#{v. || v.symbol}”" end.join(', ') end |