Skip to content
Permalink
Browse files

Mug#sip raises error if Mug is empty

* An empty mug can't be drinked from unless you like drinking _AIR_!


[#1337]
  • Loading branch information...
iamvery committed Sep 17, 2013
1 parent 5bfbc7a commit 8d0f066a8798758a23b302f3f425f7d7e943891a
Showing with 1 addition and 0 deletions.
  1. +1 −0 mug.rb
1 mug.rb
@@ -20,6 +20,7 @@ def empty?
end

def sip
raise "You're all out of #{content}" if empty?
@percent_empty += 1
end
end

0 comments on commit 8d0f066

Please sign in to comment.
You can’t perform that action at this time.