Method: TTY::Reader::History#next?

Defined in:
lib/tty/reader/history.rb

#next?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


119
120
121
# File 'lib/tty/reader/history.rb', line 119

def next?
  size > 0 && !(@index == size - 1 && !@cycle)
end