Class: Clacky::RichUI::LayoutAdapter
- Inherits:
-
Object
- Object
- Clacky::RichUI::LayoutAdapter
- Defined in:
- lib/clacky/rich_ui/layout_adapter.rb
Instance Method Summary collapse
- #clear_output ⇒ Object
-
#initialize(shell) ⇒ LayoutAdapter
constructor
A new instance of LayoutAdapter.
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_output ⇒ Object
10 11 12 13 |
# File 'lib/clacky/rich_ui/layout_adapter.rb', line 10 def clear_output @shell.transcript.store.entries.clear @shell..scroll_to_bottom end |