class Recipe::Instruction

Attributes

text[R]

Public Class Methods

new(text) click to toggle source
# File lib/recipe/instructions/instruction.rb, line 4
def initialize(text)
  @text = text
end

Public Instance Methods

text=(string) click to toggle source

The text of an instruction. e.g. “heat over to 350F”

# File lib/recipe/instructions/instruction.rb, line 9
def text=(string)
  @text = text
end