lib/tty/pager/basic.rb in tty-pager-0.11.0 vs lib/tty/pager/basic.rb in tty-pager-0.12.0

- old
+ new

@@ -19,10 +19,10 @@ # the terminal height # @option options [Integer] :width # the terminal width # # @api public - def initialize(options = {}) + def initialize(**options) super @height = options.fetch(:height) { page_height } @width = options.fetch(:width) { page_width } @prompt = options.fetch(:prompt) { default_prompt } prompt_height = PAGE_BREAK.lines.to_a.size