class Object
Public Instance Methods
another?()
click to toggle source
# File lib/styles.rb, line 55 def another? puts "" sentence = "WOULD YOU LIKE TO RANDOMLY SELECT ANOTHER MOVIE?(Y/N)".chars sentence.each do |letter| print letter sleep(0.07) end puts "" puts "" print "Input: " end
end_question()
click to toggle source
# File lib/styles.rb, line 14 def end_question puts "" sentence = "ARE YOU HAPPY WITH THIS CHOICE?(Y/N)".chars sentence.each do |letter| print letter sleep(0.07) end puts "" puts "" print "Input: " end
enjoy()
click to toggle source
# File lib/styles.rb, line 27 def enjoy puts "" sentence = "ENJOY YOUR MOVIE!".chars sentence.each do |letter| print letter sleep(0.07) end puts "" end
goodbye()
click to toggle source
# File lib/styles.rb, line 130 def goodbye word = "GOODBYE!!!".chars word.each do |letter| print letter sleep(0.09) end puts "" end
greeting()
click to toggle source
# File lib/styles.rb, line 3 def greeting puts "" sentence = "Hello, welcome to the the IMDB Random Movie Picker".chars sentence.each do |letter| print letter sleep(0.03) end puts "" end
how_many_pages()
click to toggle source
# File lib/styles.rb, line 39 def how_many_pages sentence = "How many pages is this list?:".chars sentence.each do |letter| print letter sleep(0.03) end puts "" end
lines()
click to toggle source
# File lib/styles.rb, line 68 def lines lines = "-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-".chars lines.each do |line| print line sleep(0.03) end puts "" sleep(1) end
lines_2()
click to toggle source
# File lib/styles.rb, line 89 def lines_2 lines = "-v-v-v-v-v-v-v-v-v-v-v-v-v-v-v-v-v-v-v-v-".chars lines.each do |line| print line sleep(0.03) end puts "" print "Input: " end
link?()
click to toggle source
# File lib/styles.rb, line 99 def link? sentence = "What is the link to your IMDB list?:".chars sentence.each do |letter| print letter sleep(0.03) end puts "" end
list?()
click to toggle source
# File lib/styles.rb, line 108 def list? puts "" sentence = "WOULD YOU LIKE A DESCRIPTION OF THIS MOVIE?(Y/N)".chars sentence.each do |letter| print letter sleep(0.05) end puts "" print "Input: " end
section()
click to toggle source
# File lib/styles.rb, line 49 def section print "-" puts "" end
take_a_moment()
click to toggle source
# File lib/styles.rb, line 78 def take_a_moment puts "" sentence = "THIS MAY TAKE A MOMENT...".chars sentence.each do |letter| print letter sleep(0.1) end puts "" end
your_random_movie()
click to toggle source
# File lib/styles.rb, line 119 def your_random_movie puts "" sentence = "YOUR RANDOM MOVIE IS...".chars sentence.each do |letter| print letter sleep(0.2) end puts "" puts "" end