Sha256: 1bda2aa35c0dbc73cfcedccfab3f6b46a97a7d82111e52be7fc53c991cb71c68
Contents?: true
Size: 481 Bytes
Versions: 25
Compression:
Stored size: 481 Bytes
Contents
class Pry class Command::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
Version data entries
25 entries across 25 versions & 2 rubygems