Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove unused irb-history.rb.

  • Loading branch information...
commit 1159328d3fba32753c14ac076e20e07034529d59 1 parent 731f1b0
@jarmo jarmo authored
Showing with 0 additions and 31 deletions.
  1. +0 −31 lib/watir-classic/irb-history.rb
View
31 lib/watir-classic/irb-history.rb
@@ -1,31 +0,0 @@
-# snarfed from http://blog.nicksieger.com/articles/2006/04/23/tweaking-irb
-module Readline
- module History
- @@log ||= File.join(Dir.pwd, 'console.log')
-
- def self.log= log
- @@log = log
- end
-
- def self.write_log(line)
- begin
- File.open(@@log, 'ab') {|f| f << "#{line}\n"}
- rescue
- end
- end
-
- def self.start_session_log
- write_log("# session start: #{Time.now}")
- at_exit { write_log("# session stop: #{Time.now}\n") }
- end
- end
-
- alias :old_readline :readline
- def readline(*args)
- ln = old_readline(*args)
- History.write_log(ln)
- ln
- end
-end
-
-Readline::History.start_session_log
Please sign in to comment.
Something went wrong with that request. Please try again.