Sha256: 1089e4e70d3066cc66576e6fedf6b64cee127b691d90d7275d245a7112410c5f

Contents?: true

Size: 473 Bytes

Versions: 79

Compression:

Stored size: 473 Bytes

Contents

class Pry
  class Command::Bang < Pry::ClassCommand
    match '!'
    group 'Editing'
    description 'Clear the input buffer.'
    command_options :use_prefix => false

    banner <<-'BANNER'
      Clear the input buffer. Useful if the parsing process goes wrong and you get
      stuck in the read loop.
    BANNER

    def process
      output.puts 'Input buffer cleared!'
      eval_string.replace('')
    end
  end

  Pry::Commands.add_command(Pry::Command::Bang)
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/bang.rb
pry-0.9.12.6 lib/pry/commands/bang.rb
pry-0.9.12.6-i386-mswin32 lib/pry/commands/bang.rb
pry-0.9.12.6-i386-mingw32 lib/pry/commands/bang.rb
pry-0.9.12.6-java lib/pry/commands/bang.rb
pry-0.9.12.5 lib/pry/commands/bang.rb
pry-0.9.12.5-i386-mswin32 lib/pry/commands/bang.rb
pry-0.9.12.5-i386-mingw32 lib/pry/commands/bang.rb
pry-0.9.12.5-java lib/pry/commands/bang.rb
pry-0.9.12.4 lib/pry/commands/bang.rb
pry-0.9.12.4-i386-mswin32 lib/pry/commands/bang.rb
pry-0.9.12.4-i386-mingw32 lib/pry/commands/bang.rb
pry-0.9.12.4-java lib/pry/commands/bang.rb
pry-0.9.12.3 lib/pry/commands/bang.rb
pry-0.9.12.3-i386-mswin32 lib/pry/commands/bang.rb
pry-0.9.12.3-i386-mingw32 lib/pry/commands/bang.rb
pry-0.9.12.3-java lib/pry/commands/bang.rb
torquebox-console-0.3.0 vendor/bundle/jruby/1.9/gems/pry-0.9.12-java/lib/pry/commands/bang.rb
sshp-0.0.2 vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/bang.rb
sshp-0.0.1 vendor/ruby/1.9.1/gems/pry-0.9.12.2/lib/pry/commands/bang.rb