module Tins::RequireMaybe

Public Instance Methods

require_maybe(library) { |e| ... } click to toggle source
# File lib/tins/require_maybe.rb, line 3
def require_maybe(library)
  require library
rescue LoadError => e
  block_given? and yield e
end