Sha256: 7cd88aef2c2599be3902002ea53cf1921357b069f6db811606ef9f1e82640007

Contents?: true

Size: 263 Bytes

Versions: 2

Compression:

Stored size: 263 Bytes

Contents

require 'active_support/inflector'

module Plangi
  class Food
    def self.pluralize(word)
      word.pluralize
    end

    def self.portray(food)
      if food.downcase == "broccoli"
        "Gross!"
      else
        "Delicious!"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plangi-0.2.0 lib/plangi/food.rb
plangi-0.1.0 lib/plangi/food.rb