class YarvGenerator class InstructionBuilder def build(name, operands) Instruction.new(name, operands) end end class Instruction attr_accessor :name, :operands, :label, :line_no def initialize(name, operands) @name = name @operands = operands end INSPECT_TEMPLATE = <<-INSPECT.strip <%- unless label.nil? -%>