Sha256: 3a064b656cc4cab946a9492c5e13481ecc224296256b0fae8813857880728d11

Contents?: true

Size: 363 Bytes

Versions: 18

Compression:

Stored size: 363 Bytes

Contents

module DTK
  module Common
    def self.r8_require_common(path)
      require File.expand_path(path, File.dirname(__FILE__))
    end

    def self.is_gem_installed?(gem_name)
      begin
        # if no exception gem is found
        gem gem_name
        return true
      rescue Gem::LoadError
        return false
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
dtk-common-0.7.6 lib/require_first.rb
dtk-common-0.7.5 lib/require_first.rb
dtk-common-0.7.4 lib/require_first.rb
dtk-common-0.7.3 lib/require_first.rb
dtk-common-0.7.2 lib/require_first.rb
dtk-common-0.7.1 lib/require_first.rb
dtk-common-0.7.0 lib/require_first.rb
dtk-common-0.6.5 lib/require_first.rb
dtk-common-0.6.4 lib/require_first.rb
dtk-common-0.6.3 lib/require_first.rb
dtk-common-0.6.1 lib/require_first.rb
dtk-common-0.6.0 lib/require_first.rb
dtk-common-0.5.16 lib/require_first.rb
dtk-common-0.5.15 lib/require_first.rb
dtk-common-0.5.14 lib/require_first.rb
dtk-common-0.5.13 lib/require_first.rb
dtk-common-0.5.12 lib/require_first.rb
dtk-common-0.5.11 lib/require_first.rb