class Recipe::Ingredient
Attributes
measurement[R]
name[R]
Public Class Methods
new(name, measurement)
click to toggle source
# File lib/recipe/ingredients/ingredient.rb, line 4 def initialize(name, measurement) @name = name @measurement = measurement end
Public Instance Methods
measurement=(string)
click to toggle source
Amount to add to mixture. e.g. '3 cups'
# File lib/recipe/ingredients/ingredient.rb, line 15 def measurement=(string) @amount = string end
name=(string)
click to toggle source
The name of the the ingredient, e.g. 'Wheat flour'
# File lib/recipe/ingredients/ingredient.rb, line 10 def name=(string) @name = string end