IRB::InputMethod
# File irb/xmp.rb, line 56 def initialize super @exps = [] end
# File irb/xmp.rb, line 61 def eof? @exps.empty? end
# File irb/xmp.rb, line 65 def gets while l = @exps.shift next if /^\s+$/ =~ l l.concat "\n" print @prompt, l break end l end
# File irb/xmp.rb, line 75 def puts(exps) @exps.concat exps.split(/\n/) end
This page was generated for Ruby 1.8.6
Generated with Ruby-doc Rdoc Generator 0.44.0.