class Pry::Command::GemOpen - pry-0.10.1 Documentation

# class Pry::Command::GemOpen

### Public Instance Methods

complete(str) click to toggle source

    # File lib/pry/commands/gem_open.rb, line 23
    def complete(str)
      Rubygem.complete(str)
    end

process(gem) click to toggle source

    # File lib/pry/commands/gem_open.rb, line 17
    def process(gem)
      Dir.chdir(Rubygem.spec(gem).full_gem_path) do
        Pry::Editor.invoke_editor(".", 0, false)
      end
    end