Module: Pry::RbxPath
- Defined in:
- lib/pry/rbx_path.rb
Class Method Summary (collapse)
Instance Method Summary (collapse)
- - (Object) convert_path_to_full(path) private
- - (Object) is_core_path?(path) private
- - (Object) rvm_ruby?(path) private
Class Method Details
+ (Object) convert_path_to_full(path)
8 9 10 11 12 13 14 15 16 |
# 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 |
+ (Boolean) is_core_path?(path)
4 5 6 |
# File 'lib/pry/rbx_path.rb', line 4 def is_core_path?(path) path.start_with?("kernel") || path.start_with?("lib") end |
+ (Boolean) rvm_ruby?(path)
18 19 20 |
# File 'lib/pry/rbx_path.rb', line 18 def rvm_ruby?(path) !!(path =~ /\.rvm/) end |
Instance Method Details
- (Object) convert_path_to_full(path) (private)
8 9 10 11 12 13 14 15 16 |
# 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 |
- (Object) is_core_path?(path) (private)
4 5 6 |
# File 'lib/pry/rbx_path.rb', line 4 def is_core_path?(path) path.start_with?("kernel") || path.start_with?("lib") end |
- (Object) rvm_ruby?(path) (private)
18 19 20 |
# File 'lib/pry/rbx_path.rb', line 18 def rvm_ruby?(path) !!(path =~ /\.rvm/) end |