class AzuCLI::Validators::JinjaValidator::ValidationResult

Overview

Validation result containing errors and warnings

Defined in:

azu_cli/validators/jinja_validator.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(errors : Array(ValidationError) = [] of ValidationError, warnings : Array(ValidationError) = [] of ValidationError) #

[View source]

Instance Method Detail

def add_error(error : ValidationError) #

[View source]
def add_warning(warning : ValidationError) #

[View source]
def errors : Array(ValidationError) #

[View source]
def to_s : String #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]
def valid : Bool #

[View source]
def warnings : Array(ValidationError) #

[View source]