struct Interro::Validations::Error

Overview

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

Defined in:

validations.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(attribute : String, message : String) #

[View source]

Instance Method Detail

def ==(value : String) #

[View source]
def attribute : String #

def clone #

[View source]
def copy_with(attribute _attribute = @attribute, message _message = @message) #

[View source]
def message : String #

def to_s(io : IO) #
Description copied from struct Struct

Same as #inspect(io).


[View source]