IRB::InputMethod
# File irb/input-method.rb, line 88 def initialize super @line_no = 0 @line = [] @eof = false end
# File irb/input-method.rb, line 106 def eof? @eof end
# File irb/input-method.rb, line 96 def gets if l = readline(@prompt, false) HISTORY.push(l) if !l.empty? @line[@line_no += 1] = l + "\n" else @eof = true l end end
# File irb/input-method.rb, line 114 def line(line_no) @line[line_no] end
# File irb/input-method.rb, line 110 def readable_atfer_eof? true end
This page was generated for Ruby 1.8.6
Generated with Ruby-doc Rdoc Generator 0.44.0.