module RDoc::RI::Paths

def self.gem_dir name, version

def self.gem_dir name, version
  req = Gem::Requirement.new "= #{version}"
  spec = Gem::Specification.find_by_name name, req
  File.join spec.doc_dir, 'ri'
end