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

# class Pry::Command::ShellMode

### Public Instance Methods

process() click to toggle source

    # File lib/pry/commands/shell_mode.rb, line 11
    def process
      case _pry_.prompt
      when Pry::SHELL_PROMPT
        _pry_.pop_prompt
        _pry_.custom_completions = _pry_.config.file_completions
      else
        _pry_.push_prompt Pry::SHELL_PROMPT
        _pry_.custom_completions = _pry_.config.command_completions
      end
    end