Methods
G
N
R
Attributes
[R] file_name

The file name of this input method, usually given during initialization.

[RW] prompt

The irb prompt associated with this input method

Class Public methods
new(file = STDIN_FILE_NAME)

Creates a new input method object

# File lib/irb/input-method.rb, line 20
def initialize(file = STDIN_FILE_NAME)
  @file_name = file
end
Instance Public methods
gets()

Reads the next line from this input method.

See IO#gets for more information.

# File lib/irb/input-method.rb, line 32
def gets
  IRB.fail NotImplementedError, "gets"
end
readable_after_eof?()

Whether this input method is still readable when there is no more data to read.

See IO#eof for more information.

# File lib/irb/input-method.rb, line 41
def readable_after_eof?
  false
end