Sha256: c8c6910ff1e6e7b7e809d99d39ba30aa2f86ddb6920cecf0fa1371dc048ae141
Contents?: true
Size: 553 Bytes
Versions: 2
Compression:
Stored size: 553 Bytes
Contents
# frozen_string_literal: true class Pry class Command class Bang < Pry::ClassCommand match(/^\s*!\s*$/) 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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pry-0.13.0-java | lib/pry/commands/bang.rb |
pry-0.13.0 | lib/pry/commands/bang.rb |