Sha256: ea83e5a84ce46e254ae58c137b8cd0f87c8bfd130bf15dd31c7261f0441c181d

Contents?: true

Size: 479 Bytes

Versions: 138

Compression:

Stored size: 479 Bytes

Contents

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

Version data entries

138 entries across 138 versions & 5 rubygems

Version Path
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/rbx_path.rb
pry-0.9.12.6 lib/pry/rbx_path.rb
pry-0.9.12.6-i386-mswin32 lib/pry/rbx_path.rb
pry-0.9.12.6-i386-mingw32 lib/pry/rbx_path.rb
pry-0.9.12.6-java lib/pry/rbx_path.rb
pry-0.9.12.5 lib/pry/rbx_path.rb
pry-0.9.12.5-i386-mswin32 lib/pry/rbx_path.rb
pry-0.9.12.5-i386-mingw32 lib/pry/rbx_path.rb
pry-0.9.12.5-java lib/pry/rbx_path.rb
pry-0.9.12.4 lib/pry/rbx_path.rb
pry-0.9.12.4-i386-mswin32 lib/pry/rbx_path.rb
pry-0.9.12.4-i386-mingw32 lib/pry/rbx_path.rb
pry-0.9.12.4-java lib/pry/rbx_path.rb
pry-0.9.12.3 lib/pry/rbx_path.rb
pry-0.9.12.3-i386-mswin32 lib/pry/rbx_path.rb
pry-0.9.12.3-i386-mingw32 lib/pry/rbx_path.rb
pry-0.9.12.3-java lib/pry/rbx_path.rb
torquebox-console-0.3.0 vendor/bundle/jruby/1.9/gems/pry-0.9.12-java/lib/pry/rbx_path.rb
sshp-0.0.2 vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/rbx_path.rb
sshp-0.0.1 vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/rbx_path.rb