Class: TerminalSlides::Controller
- Inherits:
-
Object
- Object
- TerminalSlides::Controller
- Defined in:
- lib/terminal_slides/controller.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(reader) ⇒ Controller
constructor
A new instance of Controller.
Constructor Details
#initialize(reader) ⇒ Controller
Returns a new instance of Controller.
5 6 7 8 |
# File 'lib/terminal_slides/controller.rb', line 5 def initialize(reader) @reader = reader @current_page = 1 end |
Instance Method Details
#execute ⇒ Object
10 11 12 13 |
# File 'lib/terminal_slides/controller.rb', line 10 def execute print_current_page catch_keys end |