Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Integer; def bottles;"#{self} bottle#{self==1?'':'s'} of beer" end
- def share;"you take one down,\npass it around\n#{(self-1).bottles.wall}" end end
- class String;def wall;"#{self} on the wall";end end
- 99.downto 1 do |b| puts b.bottles.wall, b.bottles, b.share+"." end
Add Comment
Please, Sign In to add comment