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

Methods included from RandomUtils

#fetch_sample, #rand, #shuffle

Instance Method Details

#fruitObject



16
17
18
# File 'lib/ffaker/food.rb', line 16

def fruit
  fetch_sample(FRUIT)
end

#herb_or_spiceObject



24
25
26
# File 'lib/ffaker/food.rb', line 24

def herb_or_spice
  fetch_sample(HERB_SPICE)
end

#ingredientObject



8
9
10
# File 'lib/ffaker/food.rb', line 8

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

#meatObject



20
21
22
# File 'lib/ffaker/food.rb', line 20

def meat
  fetch_sample(MEAT)
end

#vegetableObject



12
13
14
# File 'lib/ffaker/food.rb', line 12

def vegetable
  fetch_sample(VEGETABLE)
end