Skip to content

Commit

Permalink
Mug#sip raises error if Mug is empty
Browse files Browse the repository at this point in the history
* An empty mug can't be drinked from unless you like drinking _AIR_!
:sparkles:

[#1337]
  • Loading branch information
iamvery committed Sep 18, 2013
1 parent 5bfbc7a commit 8d0f066
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mug.rb
Expand Up @@ -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.