# The base class of all validators
abstract class DocumentValidator
# Validation result
#
# Accessible to the client after the `validate` method has been called.
var validation: ValidationResult is noinit
# Validate the `document` input
#
# Result of the validation can be found in the `validation` attribute.
fun validate(document: String): Bool do
validation = new ValidationResult
return true
end
end
lib/popcorn/pop_validation.nit:76,1--91,3