class RDoc::Options

def sanitize_path path

def sanitize_path path
  require 'pathname'
  dot = Pathname.new('.').expand_path
  path.reject do |item|
    path = Pathname.new(item).expand_path
    relative = path.relative_path_from(dot).to_s
    relative.start_with? '..'
  end
end