mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
0b457ba9fa
* This fix works by storing the actual file in an ivar on the binding * see https://github.com/rubinius/rubinius/issues/1581
22 lines
479 B
Ruby
22 lines
479 B
Ruby
class Pry
|
|
module RbxPath
|
|
module_function
|
|
def is_core_path?(path)
|
|
path.start_with?("kernel") || path.start_with?("lib")
|
|
end
|
|
|
|
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
|
|
|
|
def rvm_ruby?(path)
|
|
!!(path =~ /\.rvm/)
|
|
end
|
|
end
|
|
end
|