Sha256: 51133d9f30ea2b5f2f0dfba7ac237ea7942991d62d51562c5aa3145b8fd1ba5f
Contents?: true
Size: 274 Bytes
Versions: 76
Compression:
Stored size: 274 Bytes
Contents
# require "eitil_core/errors/raise_error" Kernel.module_eval do def raise_error(_class_name, message = nil) Object.const_set(_class_name, Class.new(StandardError)) unless Object.const_defined?(_class_name) raise _class_name.constantize.new message end end
Version data entries
76 entries across 76 versions & 1 rubygems