class KnittingYarnDeals::CLI
Public Instance Methods
call()
click to toggle source
# File lib/knitting_yarn_deals/cli.rb, line 3 def call system("clear") sleep(1) hello sleep(1) list_yarns menu end
goodbye()
click to toggle source
# File lib/knitting_yarn_deals/cli.rb, line 59 def goodbye puts "Good Bye and Happy Knitting!" end
hello()
click to toggle source
# File lib/knitting_yarn_deals/cli.rb, line 12 def hello puts "" puts "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" puts "" puts "Hello! Check out this yarn list for your next knitting project:" puts "" end
list_yarns()
click to toggle source
# File lib/knitting_yarn_deals/cli.rb, line 20 def list_yarns @skein = KnittingYarnDeals::Scraper.this_day @skein.each.with_index(1) do |yarn, i| puts "#{i}. #{yarn.name}" end end