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, unique

Methods included from RandomUtils

#fetch_sample, #rand, #shuffle

Instance Method Details

#fruitObject


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

def fruit
  fetch_sample(FRUIT)
end

#herb_or_spiceObject


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

def herb_or_spice
  fetch_sample(HERB_SPICE)
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
  fetch_sample(MEAT)
end

#vegetableObject


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

def vegetable
  fetch_sample(VEGETABLE)
end