Class: Clacky::RichUIController::LayoutAdapter

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

Instance Method Summary collapse

Constructor Details

#initialize(shell) ⇒ LayoutAdapter

Returns a new instance of LayoutAdapter.



1296
1297
1298
# File 'lib/clacky/rich_ui_controller.rb', line 1296

def initialize(shell)
  @shell = shell
end

Instance Method Details

#clear_outputObject



1300
1301
1302
1303
# File 'lib/clacky/rich_ui_controller.rb', line 1300

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