Class: Pry::Shell::UI::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/pry/shell/ui/base.rb

Constant Summary collapse

SEPERATOR =
"---"

Class Method Summary collapse

Class Method Details

.clear!Object



26
27
28
# File 'lib/pry/shell/ui/base.rb', line 26

def clear!
  system("clear") || system("cls")
end

.draw!Object



13
14
15
16
17
18
19
20
# File 'lib/pry/shell/ui/base.rb', line 13

def draw!
  clear!
  draw_header
  draw_seperator
  draw_content
  draw_seperator
  draw_footer
end

.stop_main_ui!Object



22
23
24
# File 'lib/pry/shell/ui/base.rb', line 22

def stop_main_ui!
  UI.stop!
end