Sha256: efda7623886a6a15381db9c98799d64b0bba31ef6e0ac6940bb19d594481e8a6

Contents?: true

Size: 1.67 KB

Versions: 10

Compression:

Stored size: 1.67 KB

Contents

require 'require_all'
require_all 'lib'
require 'pry'

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

10 entries across 10 versions & 1 rubygems

Version Path
my-congress-0.2.0 lib/header_quote.rb
my-congress-0.1.9 lib/header_quote.rb
my-congress-0.1.8 lib/header_quote.rb
my-congress-0.1.7 lib/header_quote.rb
my-congress-0.1.6 lib/header_quote.rb
my-congress-0.1.5 lib/header_quote.rb
my-congress-0.1.4 lib/header_quote.rb
my-congress-0.1.3 lib/header_quote.rb
my-congress-0.1.2 lib/header_quote.rb
my-congress-0.1.1 lib/header_quote.rb