Module: Faker::Food
Instance Method Summary
collapse
const_missing, k, underscore
Instance Method Details
#fruit ⇒ Object
14
15
16
|
# File 'lib/ffaker/food.rb', line 14
def fruit
FRUIT.sample
end
|
#herb_or_spice ⇒ Object
22
23
24
|
# File 'lib/ffaker/food.rb', line 22
def herb_or_spice
HERB_SPICE.sample
end
|
#ingredient ⇒ Object
6
7
8
|
# File 'lib/ffaker/food.rb', line 6
def ingredient
self.send( %w(vegetable fruit meat herb_or_spice)[rand 4] )
end
|
#meat ⇒ Object
18
19
20
|
# File 'lib/ffaker/food.rb', line 18
def meat
MEAT.sample
end
|
#vegetable ⇒ Object
10
11
12
|
# File 'lib/ffaker/food.rb', line 10
def vegetable
VEGETABLE.sample
end
|