Class: IRB::InputMethod
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Inherits: | Object |
Defined in: | lib/irb/input-method.rb |
Constant Summary
-
BASIC_WORD_BREAK_CHARACTERS =
# File 'lib/irb/input-method.rb', line 14" \t\n`><=;|&{("
Instance Attribute Summary
-
#prompt
rw
The irb prompt associated with this input method.
- #prompting? ⇒ Boolean readonly
-
#readable_after_eof? ⇒ Boolean
readonly
Whether this input method is still readable when there is no more data to read.
- #support_history_saving? ⇒ Boolean readonly
Instance Method Summary
Instance Attribute Details
#prompt (rw)
The irb prompt associated with this input method
# File 'lib/irb/input-method.rb', line 17
attr_accessor :prompt
#prompting? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/irb/input-method.rb', line 47
def prompting? false end
#readable_after_eof? ⇒ Boolean
(readonly)
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 39
def readable_after_eof? false end
#support_history_saving? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/irb/input-method.rb', line 43
def support_history_saving? false end
Instance Method Details
#gets
Reads the next line from this input method.
See IO#gets
for more information.
# File 'lib/irb/input-method.rb', line 22
def gets fail NotImplementedError end
#inspect
For debug message
# File 'lib/irb/input-method.rb', line 52
def inspect 'Abstract InputMethod' end
#winsize
[ GitHub ]# File 'lib/irb/input-method.rb', line 27
def winsize if instance_variable_defined?(:@stdout) && @stdout.tty? @stdout.winsize else [24, 80] end end