Class: ShowProjectScreen

Inherits:
Screen
  • Object
show all
Defined in:
lib/kale/ui.rb

Instance Method Summary collapse

Methods inherited from Screen

#initialize

Constructor Details

This class inherits a constructor from Screen

Instance Method Details

#handle_menuObject



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

#infoObject



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 menu
  @menu.push "Start a work session"
  @menu.push "Show work completed"
  @menu.push "Create invoice"
  @menu.push "Go to welcome screen"
  @menu.push "Delete this project"
  super
end