class Screen
Public Class Methods
new()
click to toggle source
# File lib/kale/ui.rb, line 5 def initialize @menu = [] system "clear" info puts puts "-------" puts menu handle_menu end
Public Instance Methods
Protected Instance Methods
show_project_heading()
click to toggle source
# File lib/kale/ui.rb, line 40 def show_project_heading puts "You are working on #{@@project.name}" end
show_projects(show_id)
click to toggle source
# File lib/kale/ui.rb, line 25 def show_projects show_id if Project.all.length == 0 puts "No projects yet." else puts "## Your Projects\n\n" Project.all.each do |p| if show_id puts "- #{p.name} (#{p.id})" else puts "- #{p.name}" end end end end