Module: FFaker::Food

Extended by:
Food, ModuleUtils
Included in:
Food
Defined in:
lib/ffaker/food.rb

Instance Method Summary collapse

Methods included from ModuleUtils

const_missing, k, underscore

Instance Method Details

#fruitObject



14
15
16
# File 'lib/ffaker/food.rb', line 14

def fruit
  FRUIT.sample
end

#herb_or_spiceObject



22
23
24
# File 'lib/ffaker/food.rb', line 22

def herb_or_spice
  HERB_SPICE.sample
end

#ingredientObject



6
7
8
# File 'lib/ffaker/food.rb', line 6

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

#meatObject



18
19
20
# File 'lib/ffaker/food.rb', line 18

def meat
  MEAT.sample
end

#vegetableObject



10
11
12
# File 'lib/ffaker/food.rb', line 10

def vegetable
  VEGETABLE.sample
end