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.3.5 lib/tins/require_maybe.rb
tins-1.3.4 lib/tins/require_maybe.rb
tins-1.3.3 lib/tins/require_maybe.rb
tins-1.3.2 lib/tins/require_maybe.rb
tins-1.3.1 lib/tins/require_maybe.rb
tins-1.3.0 lib/tins/require_maybe.rb
tins-1.2.0 lib/tins/require_maybe.rb
tins-1.1.0 lib/tins/require_maybe.rb
tins-1.0.1 lib/tins/require_maybe.rb
tins-1.0.0 lib/tins/require_maybe.rb
tins-0.13.2 lib/tins/require_maybe.rb
social_url_stats-0.0.1 vendor/ruby/1.9.1/gems/tins-0.13.1/lib/tins/require_maybe.rb
tins-0.13.1 lib/tins/require_maybe.rb
tins-0.13.0 lib/tins/require_maybe.rb
tins-0.12.0 lib/tins/require_maybe.rb
tins-0.11.0 lib/tins/require_maybe.rb
tins-0.10.0 lib/tins/require_maybe.rb
tins-0.9.0 lib/tins/require_maybe.rb
tins-0.8.4 lib/tins/require_maybe.rb
tins-0.8.3 lib/tins/require_maybe.rb