Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (11 sloc) 490 Bytes
require 'rubygems'
require 'pathname'
require 'memodis/dist_cache'
module Memodis
# slurp cool vendor goodies into our namespace. would declare them
# as gem dependencies, but they don't seem to be published...
vendor_path = Pathname.new(__FILE__).parent.parent + 'vendor'
class_eval((vendor_path+'memoizable.rb').read) unless defined? Memodis::Memoizable
class_eval((vendor_path+'weak_cache.rb').read) unless defined? Memodis::WeakCache
include Memodis::Memoizable
end