Module: FFaker::Food
Instance Method Summary
collapse
const_missing, k, luhn_check, underscore, unique
#fetch_sample, #rand, #shuffle
Instance Method Details
#fruit ⇒ Object
16
17
18
|
# File 'lib/ffaker/food.rb', line 16
def fruit
fetch_sample(FRUIT)
end
|
#herb_or_spice ⇒ Object
24
25
26
|
# File 'lib/ffaker/food.rb', line 24
def herb_or_spice
fetch_sample(HERB_SPICE)
end
|
#ingredient ⇒ Object
8
9
10
|
# File 'lib/ffaker/food.rb', line 8
def ingredient
send(%w[vegetable fruit meat herb_or_spice][rand 4])
end
|
#meat ⇒ Object
20
21
22
|
# File 'lib/ffaker/food.rb', line 20
def meat
fetch_sample(MEAT)
end
|
#vegetable ⇒ Object
12
13
14
|
# File 'lib/ffaker/food.rb', line 12
def vegetable
fetch_sample(VEGETABLE)
end
|