Sha256: 3a1349520c225febaaf97bff7034ac6a4646b658228fc7abb45512f2b240fbb8

Contents?: true

Size: 412 Bytes

Versions: 9

Compression:

Stored size: 412 Bytes

Contents

# frozen_string_literal: true

module FFakerTW
  module Food
    extend ModuleUtils
    extend self

    def ingredient
      send(%w[vegetable fruit meat herb_or_spice][rand 4])
    end

    def vegetable
      fetch_sample(VEGETABLE)
    end

    def fruit
      fetch_sample(FRUIT)
    end

    def meat
      fetch_sample(MEAT)
    end

    def herb_or_spice
      fetch_sample(HERB_SPICE)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ffakerTW-1.8.0 lib/ffakerTW/food.rb
ffakerTW-1.7.0 lib/ffakerTW/food.rb
ffakerTW-1.6.0 lib/ffakerTW/food.rb
ffakerTW-1.5.0 lib/ffakerTW/food.rb
ffakerTW-1.4.0 lib/ffakerTW/food.rb
ffakerTW-1.3.0 lib/ffakerTW/food.rb
ffakerTW-1.2.0 lib/ffakerTW/food.rb
ffakerTW-1.1.0 lib/ffakerTW/food.rb
ffakerTW-0.1.0 lib/ffakerTW/food.rb