Sha256: b4ff1de749591ebb211b1f0203b3027d826da8e2d982690032a25c33e43e7306
Contents?: true
Size: 377 Bytes
Versions: 30
Compression:
Stored size: 377 Bytes
Contents
class ReeErrors::PermissionError include Ree::FnDSL fn :permission_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, :permission, code,locale, msg) end end
Version data entries
30 entries across 30 versions & 1 rubygems