Sha256: f1c87b6427bc883cf74b041cd54d7b5263e296b55f942862663e3a8d91cd9db0
Contents?: true
Size: 271 Bytes
Versions: 2
Compression:
Stored size: 271 Bytes
Contents
module Kernel # Raise error if Load Failed # @param [ String ] file file to Load # @param [ String ] prompt To prompt what when load error def safe_require(file, prompt) begin require file rescue LoadError => _e raise prompt end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
em-midori-0.1.7.1 | lib/midori/core_ext/safe_require.rb |
em-midori-0.1.7 | lib/midori/core_ext/safe_require.rb |