Class: CowBlame

Inherits:
Object
  • Object
show all
Defined in:
lib/CowBlame.rb

Class Method Summary collapse

Class Method Details

.cowObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/CowBlame.rb', line 2

def self.cow
  name = File.join(File.dirname(__FILE__), '/names.txt')
  random_line = File.readlines(name).sample
  random_line.gsub!(/\r\n?/, "")

  cow = "
  IT WAS #{random_line.upcase.chomp}
  I SWEAR!
  THAT PERSON BROKE IT!
        \\   ^__^
         \\  (oo)\\_______
          \\ (__)\\ 0   0 )\\  *
                 ||----w | \\/
                 ||     ||
  "
end