Sha256: e2f329ac3bda0d681d9218ed42404bbf3e87ee9a4034f8e4a1949d38fddc66dd
Contents?: true
Size: 517 Bytes
Versions: 1
Compression:
Stored size: 517 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 def self.something_cool raise StandardError, "Important ID undefined." if important_id.blank? "Something Cool!" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foodie-oscarpay4-test-0.2.1 | lib/foodie/food.rb |