class EyeOfNewt::Ingredient
Attributes
amount[RW]
names[RW]
note[RW]
style[RW]
unit[RW]
unit_modifier[RW]
Public Class Methods
new(amount: nil, unit: nil, unit_modifier: nil, names: [], style: nil, note: nil)
click to toggle source
# File lib/eye_of_newt/ingredient.rb, line 5 def initialize(amount: nil, unit: nil, unit_modifier: nil, names: [], style: nil, note: nil) self.amount = amount self.unit = unit self.unit_modifier = unit_modifier self.names = names self.style = style self.note = note end
Public Instance Methods
name()
click to toggle source
# File lib/eye_of_newt/ingredient.rb, line 14 def name names.first end
name=(n)
click to toggle source
# File lib/eye_of_newt/ingredient.rb, line 18 def name=(n) self.names = [n] end