Sha256: c9902645f1ea50908d81bacc8f6981c1b1cd7b20056543dc647650b68a0423ea
Contents?: true
Size: 1.62 KB
Versions: 2
Compression:
Stored size: 1.62 KB
Contents
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."', " - Sam Adams" ], :quote2 => [ '"Is life so dear or peace so sweet as to be purchased at the price of chains', 'and slavery? Forbid it, Almighty God! I know not what course others may take,', 'but as for me, give me Liberty or give me Death!"', ' - Patrick Henry' ], :quote3 => [ '"Where liberty dwells, there is my country." - Benjamin Franklin' ], :quote4 => [ '"This country will not be a good place for any of us to live in', 'unless we make it a good place for all of us to live in."', ' -Theodore Roosevelt' ], :quote5 => [ '"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' ] } def initialize key = "#{@@quotes.keys[rand(@@quotes.size)]}" puts " " @@quotes[key.intern].each {|line| puts line} puts " " puts "------------------------------------------------------------------------------------------" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
my-congress-0.2.2 | lib/header_quote.rb |
my-congress-0.2.1 | lib/header_quote.rb |