class Randoq::Random_quote

Constants

QUOTES

Public Instance Methods

add_quote() click to toggle source
# File lib/randoq.rb, line 28
def add_quote
  puts 'Enter a quote!'
  quote = gets.chomp
  puts 'Enter your name!'
  author = gets.chomp
  QUOTES.push([quote, author])
end
gen_all_quotes() click to toggle source
# File lib/randoq.rb, line 20
def gen_all_quotes
  puts QUOTES 
end
gen_random_quote() click to toggle source
# File lib/randoq.rb, line 16
def gen_random_quote
  puts QUOTES.sample
end
shuffle() click to toggle source
# File lib/randoq.rb, line 24
def shuffle
  puts QUOTES.shuffle
end