Method: Castkit::AttributeError#to_s
- Defined in:
- lib/castkit/error.rb
#to_s ⇒ String
Formats the error message with field info if available.
36 37 38 39 |
# File 'lib/castkit/error.rb', line 36 def to_s field_info = field ? " (on #{field})" : "" "#{super}#{field_info}" end |