Sha256: 29ea7e0401508ff376525cad7e476d7915938ad4c6ff5bd81b45fdc98c717293
Contents?: true
Size: 652 Bytes
Versions: 1
Compression:
Stored size: 652 Bytes
Contents
# encoding: UTF-8 module Rosette module Core module Validators # Base class for validators. # # @!attribute [r] options # @return [Hash] a hash of options. class Validator attr_reader :options # Creates a new validator. # # @param [Hash] options A hash of options. def initialize(options = {}) @options = options end # An array of error messages. Populated when +#valid?+ is called. # # @return [Array<String>] The list of error messages. def messages @messages ||= [] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rosette-core-1.0.1 | lib/rosette/core/validators/validator.rb |