Sha256: ad19fb7f850d700d88afa6ce32ebcd2d30220f2e94ac90d8399ecee0546c46e8

Contents?: true

Size: 451 Bytes

Versions: 79

Compression:

Stored size: 451 Bytes

Contents

class Pry
  class Command::SimplePrompt < Pry::ClassCommand
    match 'simple-prompt'
    group 'Misc'
    description 'Toggle the simple prompt.'

    banner <<-'BANNER'
      Toggle the simple prompt.
    BANNER

    def process
      case _pry_.prompt
      when Pry::SIMPLE_PROMPT
        _pry_.pop_prompt
      else
        _pry_.push_prompt Pry::SIMPLE_PROMPT
      end
    end
  end

  Pry::Commands.add_command(Pry::Command::SimplePrompt)
end

Version data entries

79 entries across 79 versions & 5 rubygems

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