bear eating

PHOTO EMBED

Mon Mar 08 2021 16:02:07 GMT+0000 (UTC)

Saved by @randomize_first #ruby

class Bear
  def eat(food)
    raise "#{food} is not edible!" unless food.respond_to? :nutrition_value
    food.nutrition_value
  end
end
content_copyCOPY

https://en.wikipedia.org/wiki/Separation_of_concerns