Sha256: 0637f7066572311db2e2be7d11554ece133d985ef275744fa9ed067ffa672d39
Contents?: true
Size: 354 Bytes
Versions: 94
Compression:
Stored size: 354 Bytes
Contents
require_relative 'error_factory' class ReeErrors::ValidationError < ReeErrors::ErrorFactory include Ree::BeanDSL bean :validation_error do link :build_error link 'ree_errors/error', -> { Error } end contract Symbol, Nilor[String] => SubclassOf[Error] def build(code, locale = nil) build_error(:validation, code, locale) end end
Version data entries
94 entries across 94 versions & 1 rubygems