Added the gets method to the Ruby debugger AsyncFile object.

Fri, 29 Oct 2010 19:09:37 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 29 Oct 2010 19:09:37 +0200
changeset 710
5a18249d68aa
parent 709
0129fbced654
child 711
8cd4f7a574a2

Added the gets method to the Ruby debugger AsyncFile object.

DebugClients/Ruby/AsyncFile.rb file | annotate | diff | comparison | revisions
--- a/DebugClients/Ruby/AsyncFile.rb	Fri Oct 29 11:37:43 2010 +0200
+++ b/DebugClients/Ruby/AsyncFile.rb	Fri Oct 29 19:09:37 2010 +0200
@@ -238,7 +238,14 @@
         return lines
     end
     
-    def seek(offset, whence=IO::SEEK_SET)
+    def gets()
+=begin edoc
+ Public method to read a line from this file.
+=end
+        readline()
+    end
+
+   def seek(offset, whence=IO::SEEK_SET)
 =begin edoc
 Public method to move the filepointer.
 

eric ide

mercurial