class Faker::Food
Public Class Methods
description()
click to toggle source
Retrieves a description about some dish
# File lib/faker/food.rb, line 10 def description fetch('food.descriptions') end
dish()
click to toggle source
Retrieves a typical dish from each country
# File lib/faker/food.rb, line 5 def dish fetch('food.dish') end
fruits()
click to toggle source
Retrieves a fruit
# File lib/faker/food.rb, line 20 def fruits fetch('food.fruits') end
ingredient()
click to toggle source
Retrieves an ingredient
# File lib/faker/food.rb, line 15 def ingredient fetch('food.ingredients') end
measurement()
click to toggle source
Retrieves cooking measures
# File lib/faker/food.rb, line 35 def measurement fetch('food.measurement_sizes') + ' ' + fetch('food.measurements') end
metric_measurement()
click to toggle source
Retrieves metric mesurements
# File lib/faker/food.rb, line 40 def metric_measurement fetch('food.metric_measurements') end
spice()
click to toggle source
Retrieves some random spice
# File lib/faker/food.rb, line 30 def spice fetch('food.spices') end
vegetables()
click to toggle source
Retrieves a vegetable
# File lib/faker/food.rb, line 25 def vegetables fetch('food.vegetables') end