Class: ShowProjectScreen
Instance Method Summary
collapse
Methods inherited from Screen
#initialize
Constructor Details
This class inherits a constructor from Screen
Instance Method Details
#handle_menu ⇒ Object
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
|
# File 'lib/kale/ui.rb', line 144
def handle_menu
answer = gets.chomp
if answer == "1"
DoWorkScreen.new
elsif answer == "2"
ShowSessionsForProjectScreen.new
elsif answer == "3"
CreateInvoiceScreen.new
elsif answer == "4"
WelcomeScreen.new
elsif answer == "5"
DeleteProjectScreen.new
end
end
|
#info ⇒ Object
131
132
133
|
# File 'lib/kale/ui.rb', line 131
def info
show_project_heading
end
|
135
136
137
138
139
140
141
142
|
# File 'lib/kale/ui.rb', line 135
def
.push "Start a work session"
.push "Show work completed"
.push "Create invoice"
.push "Go to welcome screen"
.push "Delete this project"
super
end
|