Sha256: a8a90d1cdfa275f10daa5e1cb995cd9f90ca8e0bb2bfbba01105eccc5ea23f77

Contents?: true

Size: 398 Bytes

Versions: 1

Compression:

Stored size: 398 Bytes

Contents

module LruRedux
  def self.is_19?
    major,minor = RUBY_VERSION.split(".").map{|a| a.to_i}
    major > 1 || (major == 1 && minor > 8)
  end
end

require "lru_redux/version"
if LruRedux.is_19?
  require "lru_redux/cache19"
else
  require "lru_redux/cache"
end
require "lru_redux/thread_safe_cache"
require "lru_redux/thread_safe_cache_jruby" if
    RUBY_PLATFORM == 'java' && JRUBY_VERSION < '9.0'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lru_redux-0.8.4 lib/lru_redux.rb