Class: Pry::Shell::IO::Pager::Proxy

Inherits:
Base
  • Object
show all
Defined in:
lib/pry/shell/io/pager.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(output) ⇒ Proxy

rubocop:disable Lint/MissingSuper



17
18
19
20
# File 'lib/pry/shell/io/pager.rb', line 17

def initialize(output) # rubocop:disable Lint/MissingSuper
  output_proxy = Output.new(output)
  @pager = Pager.new(output_proxy)
end

Instance Attribute Details

#pagerObject (readonly)

Returns the value of attribute pager.



15
16
17
# File 'lib/pry/shell/io/pager.rb', line 15

def pager
  @pager
end

Instance Method Details

#open(&block) ⇒ Object



26
27
28
# File 'lib/pry/shell/io/pager.rb', line 26

def open(&block)
  pager.open(&block)
end

#page(text) ⇒ Object



22
23
24
# File 'lib/pry/shell/io/pager.rb', line 22

def page(text)
  pager.page(text)
end