class TheatreCliGem::CLI
Public Instance Methods
call()
click to toggle source
# File lib/theatre_cli_gem/cli.rb, line 3 def call list_shows menu goodbye end
goodbye()
click to toggle source
# File lib/theatre_cli_gem/cli.rb, line 32 def goodbye puts "We hope you found the information you were seeking. Enjoy!" end
list_shows()
click to toggle source
# File lib/theatre_cli_gem/cli.rb, line 9 def list_shows puts "Broadway Shows Currently Playing:" TheatreCliGem::Show.scrape_shows.each.with_index(1) do |show, i| puts "#{i}. #{show.name}" end end