Class: Clacky::RichUI::LayoutAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/clacky/rich_ui/layout_adapter.rb

Instance Method Summary collapse

Constructor Details

#initialize(shell) ⇒ LayoutAdapter

Returns a new instance of LayoutAdapter.



6
7
8
# File 'lib/clacky/rich_ui/layout_adapter.rb', line 6

def initialize(shell)
  @shell = shell
end

Instance Method Details

#clear_outputObject



10
11
12
13
# File 'lib/clacky/rich_ui/layout_adapter.rb', line 10

def clear_output
  @shell.transcript.store.entries.clear
  @shell.viewport.scroll_to_bottom
end