lib/header_quote.rb in my-congress-0.2.2 vs lib/header_quote.rb in my-congress-0.2.3

- old
+ new

@@ -1,6 +1,5 @@ - class HeaderQuote @@quotes = { :quote1 => [ '"You will never know how much it has cost my generation to preserve your freedom.', 'I hope you will make a good use of it."', @@ -24,16 +23,13 @@ '"Our great modern Republic. May those who seek the blessings of its institutions', 'and the protection of its flag remember the obligations they impose."', ' - Ulysses S. Grant' ] } + + #Grabs random quote from above hash for Main Menu def initialize key = "#{@@quotes.keys[rand(@@quotes.size)]}" - puts " " @@quotes[key.intern].each {|line| puts line} - puts " " puts "------------------------------------------------------------------------------------------" - end - - end \ No newline at end of file