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