Method: HighLine::Paginator#continue_paging?
- Defined in:
- lib/highline/paginator.rb
#continue_paging? ⇒ Boolean
Ask user if they wish to continue paging output. Allows them to type “q” to cancel the paging process.
45 46 47 48 49 50 |
# File 'lib/highline/paginator.rb', line 45 def continue_paging? command = highline.new_scope.ask( "-- press enter/return to continue or q to stop -- " ) { |q| q.character = true } command !~ /\A[qQ]\Z/ # Only continue paging if Q was not hit. end |