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.
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_name ⇒ Object (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 |
#prompt ⇒ Object
Returns the value of attribute prompt
30 31 32 |
# File 'lib/irb/input-method.rb', line 30 def prompt @prompt end |