Sha256: 4451b977c5c2a4f1c86269198a3ca8690aef930540c153f0e40fdc055a443a2d

Contents?: true

Size: 379 Bytes

Versions: 1

Compression:

Stored size: 379 Bytes

Contents

# frozen_string_literal: true

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!"
      end
    end

    def self.pluralize(word)
      word.pluralize
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foodie-oscarpay4-test-0.2.0 lib/foodie/food.rb