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.



23
24
25
# File 'lib/irb/input-method.rb', line 23

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

Instance Attribute Details

#file_nameObject (readonly)

Returns the value of attribute file_name



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

def file_name
  @file_name
end

#promptObject

Returns the value of attribute prompt



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

def prompt
  @prompt
end

Instance Method Details

#getsObject



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

def gets
  IRB.fail NotImplementedError, "gets"
end

#readable_atfer_eof?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/irb/input-method.rb', line 35

def readable_atfer_eof?
  false
end