Class: IRB::InputMethod

Inherits:
Object show all
Defined in:
lib/irb/input-method.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file = STDIN_FILE_NAME) ⇒ InputMethod

Returns a new instance of InputMethod.



25
26
27
# File 'lib/irb/input-method.rb', line 25

def initialize(file = STDIN_FILE_NAME)
  @file_name = file
end

Instance Attribute Details

#file_nameObject (readonly)

Returns the value of attribute file_name



28
29
30
# File 'lib/irb/input-method.rb', line 28

def file_name
  @file_name
end

#promptObject

Returns the value of attribute prompt



30
31
32
# File 'lib/irb/input-method.rb', line 30

def prompt
  @prompt
end

Instance Method Details

#getsObject



32
33
34
# File 'lib/irb/input-method.rb', line 32

def gets
  IRB.fail NotImplementedError, "gets"
end

#readable_atfer_eof?Boolean

Returns:

  • (Boolean)


37
38
39
# File 'lib/irb/input-method.rb', line 37

def readable_atfer_eof?
  false
end