struct

Interro::Validations::Error

Inherits Struct / Value / Object

Represents a validation error. Can be rendered directly to a template.

Constructors

new(attribute : String, message : String)
Source

Instance methods

==(value : String)
Source
attribute
clone
Source
copy_with(attribute _attribute = @attribute, message _message = @message)
Source
message
to_s(io : IO)

Same as #inspect(io).

Source