Class: Faker::Food
Constant Summary
Constants inherited
from Base
Base::Letters, Base::Numbers, Base::ULetters
Class Method Summary
collapse
Methods inherited from Base
bothify, fetch, fetch_all, flexible, letterify, method_missing, numerify, parse, rand_in_range, regexify, translate, unique, with_locale
Class Method Details
.ingredient ⇒ Object
4
5
6
|
# File 'lib/faker/food.rb', line 4
def ingredient
fetch('food.ingredients')
end
|
.measurement ⇒ Object
12
13
14
|
# File 'lib/faker/food.rb', line 12
def measurement
fetch('food.measurement_sizes') + ' ' + fetch('food.measurements')
end
|
.spice ⇒ Object
8
9
10
|
# File 'lib/faker/food.rb', line 8
def spice
fetch('food.spices')
end
|