Sha256: a6ee8ca77a5fab7f4746d4d70c7858d7311a29428421b67ef9f1e854d18a8105

Contents?: true

Size: 162 Bytes

Versions: 171

Compression:

Stored size: 162 Bytes

Contents

module Tins
  module RequireMaybe
    def require_maybe(library)
      require library
    rescue LoadError => e
      block_given? and yield e
    end
  end
end

Version data entries

171 entries across 153 versions & 9 rubygems

Version Path
tins-1.37.0 lib/tins/require_maybe.rb
tins-1.36.1 lib/tins/require_maybe.rb
tins-1.36.0 lib/tins/require_maybe.rb
tins-1.35.0 lib/tins/require_maybe.rb
tins-1.34.0 lib/tins/require_maybe.rb
tins-1.33.0 lib/tins/require_maybe.rb
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/tins-1.31.1/lib/tins/require_maybe.rb
tins-1.32.1 lib/tins/require_maybe.rb
tins-1.32.0 lib/tins/require_maybe.rb
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/tins-1.31.1/lib/tins/require_maybe.rb
tdiary-5.2.2 vendor/bundle/ruby/3.1.0/gems/tins-1.31.1/lib/tins/require_maybe.rb
tins-1.31.1 lib/tins/require_maybe.rb
tdiary-5.2.1 vendor/bundle/ruby/3.1.0/gems/tins-1.31.0/lib/tins/require_maybe.rb
tins-1.31.0 lib/tins/require_maybe.rb
tins-1.30.0 lib/tins/require_maybe.rb
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/tins-1.29.1/lib/tins/require_maybe.rb
tdiary-5.2.0 vendor/bundle/ruby/2.7.0/gems/tins-1.29.1/lib/tins/require_maybe.rb
tdiary-5.1.7 vendor/bundle/ruby/3.0.0/gems/tins-1.29.1/lib/tins/require_maybe.rb
tdiary-5.1.7 vendor/bundle/ruby/2.7.0/gems/tins-1.29.1/lib/tins/require_maybe.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/tins-1.26.0/lib/tins/require_maybe.rb