Class: IRB::ReadlineInputMethod
- Inherits:
-
Object
- Object
- IRB::ReadlineInputMethod
- Defined in:
- lib/snapper/irb_patch.rb
Instance Method Summary collapse
Instance Method Details
#gets_with_snapper ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/snapper/irb_patch.rb', line 5 def gets_with_snapper line = gets_without_snapper snapper = Snapper.instance # TODO: Make detecting our own command less ghetto snapper.snapper_file.puts(line) unless line.blank? || line =~ /Snapper/ snapper.snapper_file.flush line end |