class Bear def eat(food) raise "#{food} is not edible!" unless food.respond_to? :nutrition_value food.nutrition_value end end
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter