class IRB::InputMethod
Constants
- BASIC_WORD_BREAK_CHARACTERS
Attributes
The irb prompt associated with this input method
Public Instance Methods
Source
# File bundled-src/irb-1.16.0/lib/irb/input-method.rb, line 22 def gets fail NotImplementedError end
Reads the next line from this input method.
See IO#gets for more information.
Source
# File bundled-src/irb-1.16.0/lib/irb/input-method.rb, line 53 def inspect 'Abstract InputMethod' end
For debug message
Source
# File bundled-src/irb-1.16.0/lib/irb/input-method.rb, line 48 def prompting? false end
Source
# File bundled-src/irb-1.16.0/lib/irb/input-method.rb, line 40 def readable_after_eof? false end
Whether this input method is still readable when there is no more data to read.
See IO#eof for more information.
Source
# File bundled-src/irb-1.16.0/lib/irb/input-method.rb, line 44 def support_history_saving? false end
Source
# File bundled-src/irb-1.16.0/lib/irb/input-method.rb, line 27 def winsize if instance_variable_defined?(:@stdout) && @stdout.tty? winsize = @stdout.winsize # If width or height is 0, something is wrong. return winsize unless winsize.include? 0 end [24, 80] end