Sha256: f0b429e4e7ecbc79ac9170c78436dce349bb6729ba391e84b0e6027cace81f88
Contents?: true
Size: 373 Bytes
Versions: 31
Compression:
Stored size: 373 Bytes
Contents
class ReeErrors::NotFoundError include Ree::FnDSL fn :not_found_error do target :class with_caller link :build_error link 'ree_errors/error', -> { Error } end contract Symbol, Nilor[String], Kwargs[msg: Nilor[String]] => SubclassOf[Error] def call(code, locale = nil, msg: nil) build_error(get_caller, :not_found, code,locale, msg) end end
Version data entries
31 entries across 31 versions & 1 rubygems