class Riperecipes::CLI
CLI
Controller
Public Instance Methods
call()
click to toggle source
# File lib/riperecipes/cli.rb, line 4 def call list menu goodbye end
goodbye()
click to toggle source
# File lib/riperecipes/cli.rb, line 92 def goodbye puts "Thanks for stopping by! Goodbye!" end
list()
click to toggle source
# File lib/riperecipes/cli.rb, line 10 def list puts " " puts "Welcome to Ripe Recipes!" puts "This tool provides you with cuisine suggestions for today!" puts " " @recipe = Riperecipes::Recipe.today @recipe.each.with_index(1) do |cuisines, i| puts "#{i}. #{cuisines.cuisine} - #{cuisines.name} - Ready In: #{cuisines.ready_time}" end puts " " end