Sha256: 57618fa85d6a0f975760aa6e60fd83d03845cae7041851fc2181e8021bb4b78f

Contents?: true

Size: 387 Bytes

Versions: 6

Compression:

Stored size: 387 Bytes

Contents

# file: spec/fixtures/demo1.rb
# from: https://github.com/radar/guides/blob/master/gem-development/foodie/lib/foodie/food.rb
require 'active_support/inflector'
module Foodie
  class Food
    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

6 entries across 6 versions & 1 rubygems

Version Path
html2pdf-0.0.6 test/fixtures/samples/demo1_xxx.rb
html2pdf-0.0.5 test/fixtures/samples/demo1_xxx.rb
html2pdf-0.0.4 test/fixtures/samples/demo1_xxx.rb
html2pdf-0.0.3 test/fixtures/samples/demo1_xxx.rb
html2pdf-0.0.2 test/fixtures/samples/demo1_xxx.rb
html2pdf-0.0.1 test/fixtures/samples/demo1_xxx.rb