Sha256: d2a715d40a4eac8951b35fdcaf93d9a1ec697fe58ddaf7712169adbaf66b8c13

Contents?: true

Size: 387 Bytes

Versions: 13

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

13 entries across 13 versions & 1 rubygems

Version Path
html2pdf-0.2.6 test/fixtures/samples/demo1_xxx.rb
html2pdf-0.2.5 test/fixtures/samples/demo1_xxx.rb
html2pdf-0.2.4 test/fixtures/samples/demo1_xxx.rb
html2pdf-0.2.3 test/fixtures/samples/demo1_xxx.rb
html2pdf-0.2.2 test/fixtures/samples/demo1_xxx.rb
html2pdf-0.2.1 test/fixtures/samples/demo1_xxx.rb
html2pdf-0.2.0 test/fixtures/samples/demo1_xxx.rb
html2pdf-0.1.7 test/fixtures/samples/demo1_xxx.rb
html2pdf-0.1.6 test/fixtures/samples/demo1_xxx.rb
html2pdf-0.1.5 test/fixtures/samples/demo1_xxx.rb
html2pdf-0.1.4 test/fixtures/samples/demo1_xxx.rb
html2pdf-0.1.3 test/fixtures/samples/demo1_xxx.rb
html2pdf-0.1.2 test/fixtures/samples/demo1_xxx.rb