Class IRB::StdioInputMethod
In: lib/irb/input-method.rb
Parent: InputMethod

Methods

eof?   gets   line   new   readable_atfer_eof?  

Public Class methods

[Source]

    # File lib/irb/input-method.rb, line 41
41:     def initialize
42:       super
43:       @line_no = 0
44:       @line = []
45:     end

Public Instance methods

[Source]

    # File lib/irb/input-method.rb, line 52
52:     def eof?
53:       $stdin.eof?
54:     end

[Source]

    # File lib/irb/input-method.rb, line 47
47:     def gets
48:       print @prompt
49:       @line[@line_no += 1] = $stdin.gets
50:     end

[Source]

    # File lib/irb/input-method.rb, line 60
60:     def line(line_no)
61:       @line[line_no]
62:     end

[Source]

    # File lib/irb/input-method.rb, line 56
56:     def readable_atfer_eof?
57:       true
58:     end

[Validate]