Class: PryGem::GemCd

Inherits:
Pry::ClassCommand
  • Object
show all
Defined in:
lib/pry-gem/gem_cd.rb

Overview

Since:

  • 1.0.0

Instance Method Summary collapse

Instance Method Details

#complete(str) ⇒ Object

Since:

  • 1.0.0



21
22
23
# File 'lib/pry-gem/gem_cd.rb', line 21

def complete(str)
  Rubygem.complete(str)
end

#process(gem) ⇒ Object

Since:

  • 1.0.0



16
17
18
19
# File 'lib/pry-gem/gem_cd.rb', line 16

def process(gem)
  Dir.chdir(Rubygem.spec(gem).full_gem_path)
  output.puts(Dir.pwd)
end