module Pry::RbxPath

Public Instance Methods

convert_path_to_full(path) click to toggle source
# File lib/pry/rbx_path.rb, line 8
def convert_path_to_full(path)
  if path.start_with?("kernel")
    File.join File.dirname(Rubinius::KERNEL_PATH), path
  elsif path.start_with?("lib")
    File.join File.dirname(Rubinius::LIB_PATH), path
  else
    path
  end
end
is_core_path?(path) click to toggle source
# File lib/pry/rbx_path.rb, line 4
def is_core_path?(path)
  path.start_with?("kernel") || path.start_with?("lib")
end
rvm_ruby?(path) click to toggle source
# File lib/pry/rbx_path.rb, line 18
def rvm_ruby?(path)
  !!(path =~ /\.rvm/)
end