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.18.0 lib/tins/require_maybe.rb
tins-1.17.0 lib/tins/require_maybe.rb
tdiary-5.0.9 vendor/bundle/gems/tins-1.16.3/lib/tins/require_maybe.rb
tdiary-5.0.8 vendor/bundle/ruby/2.5.0/gems/tins-0.13.2/lib/tins/require_maybe.rb
tdiary-5.0.8 vendor/bundle/gems/tdiary-5.0.7/vendor/bundle/gems/tins-1.16.3/lib/tins/require_maybe.rb
tdiary-5.0.8 vendor/bundle/gems/tins-0.13.2/lib/tins/require_maybe.rb
tdiary-5.0.7 vendor/bundle/gems/tins-1.16.3/lib/tins/require_maybe.rb
tins-1.16.3 lib/tins/require_maybe.rb
tins-1.16.2 lib/tins/require_maybe.rb
tins-1.16.1 lib/tins/require_maybe.rb
tins-1.16.0 lib/tins/require_maybe.rb
tins-1.15.1 lib/tins/require_maybe.rb
tdiary-5.0.6 vendor/bundle/gems/tins-1.15.0/lib/tins/require_maybe.rb
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/tins-1.6.0/lib/tins/require_maybe.rb
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/tins-1.6.0/lib/tins/require_maybe.rb
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/tins-1.6.0/lib/tins/require_maybe.rb
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/tins-1.6.0/lib/tins/require_maybe.rb
tins-1.15.0 lib/tins/require_maybe.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/tins-1.13.2/lib/tins/require_maybe.rb
tdiary-5.0.5 vendor/bundle/gems/tins-1.13.2/lib/tins/require_maybe.rb