Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: f076a3f22e
Fetching contributors…

Cannot retrieve contributors at this time

41 lines (32 sloc) 0.487 kb
# encoding: utf-8
module Beer
EMOJI = "🍺 "
DOUBLE_EMOJI = "🍻 "
end
class Fixnum
def beers
Beer::EMOJI * self
end
def double_beers
Beer::DOUBLE_EMOJI * self
end
alias beer beers
end
class String
def compact
(length / 4).double_beers + ((length % 4) / 2).beers
end
end
class Random
def self.beers(amount = 100)
rand(amount).beers
end
end
class Time
def beer?
true
end
end
puts "Loading BEER FRAMEWORK"
sleep 2
puts "... loaded!"
Jump to Line
Something went wrong with that request. Please try again.