Class: IRB::InputMethod
Direct Known Subclasses
Instance Attribute Summary collapse
-
#file_name ⇒ Object
readonly
Returns the value of attribute file_name.
-
#prompt ⇒ Object
Returns the value of attribute prompt.
Instance Method Summary collapse
- #gets ⇒ Object
-
#initialize(file = STDIN_FILE_NAME) ⇒ InputMethod
constructor
A new instance of InputMethod.
- #readable_atfer_eof? ⇒ Boolean
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_name ⇒ Object (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 |
#prompt ⇒ Object
Returns the value of attribute prompt.
28 29 30 |
# File 'lib/irb/input-method.rb', line 28 def prompt @prompt end |
Instance Method Details
#gets ⇒ Object
30 31 32 |
# File 'lib/irb/input-method.rb', line 30 def gets IRB.fail NotImplementedError, "gets" end |
#readable_atfer_eof? ⇒ Boolean
35 36 37 |
# File 'lib/irb/input-method.rb', line 35 def readable_atfer_eof? false end |