lib/foodie/food.rb in foodie-oscarpay4-test-0.1.0 vs lib/foodie/food.rb in foodie-oscarpay4-test-0.2.0
- old
+ new
@@ -1,9 +1,13 @@
# frozen_string_literal: true
-require 'active_support/inflector'
+require "active_support/inflector"
+require "active_support/core_ext/class/attribute"
+
module Foodie
class Food
+ class_attribute :important_id
+
def self.portray(food)
if food.downcase == "broccoli"
"Gross!"
else
"Delicious!"