Sha256: 57c0c85255dfb687825d94c28da4f0b108a8a02bd6927fe52832db8193391330
Contents?: true
Size: 787 Bytes
Versions: 4
Compression:
Stored size: 787 Bytes
Contents
# encoding: utf-8 module Assertion # The exception to be raised by invalid assertions' `validate!` method call # # @api public # class InvalidError < RuntimeError # @!scope class # @!method new(*names) # Creates an exception instance # # @param [Symbol, Array<Symbol>] names Wrong names of attribute(s) # # @return [Assertion::InvalidError] # # @api private # @private def initialize(*messages) @messages = messages.flatten IceNine.deep_freeze(self) end # @!attribute [r] messages # # @return [Array<String>] The list of error messages # attr_reader :messages # @private def inspect "<#{self} @messages=#{messages}>" end end # class InvalidError end # module Assertion
Version data entries
4 entries across 4 versions & 1 rubygems