Sha256: a2f5f012b453be5c364507e5e8d686d3cfc0c9e6cbf75de1efe5e79aa503e890

Contents?: true

Size: 139 Bytes

Versions: 7

Compression:

Stored size: 139 Bytes

Contents

module Kernel
  def safe_require(file, prompt)
    begin
      require file
    rescue LoadError => _e
      raise prompt
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
em-midori-0.1.6.1 lib/midori/core_ext/safe_require.rb
em-midori-0.1.6 lib/midori/core_ext/safe_require.rb
em-midori-0.1.5.4 lib/em-midori/core_ext/safe_require.rb
em-midori-0.1.5.3 lib/em-midori/core_ext/safe_require.rb
em-midori-0.1.5.2 lib/em-midori/core_ext/safe_require.rb
em-midori-0.1.5.1 lib/em-midori/core_ext/safe_require.rb
em-midori-0.1.5 lib/em-midori/core_ext/safe_require.rb