class Origami::PDF::Instruction

def initialize(operator, *operands)

def initialize(operator, *operands)
    @operator = operator
    @operands = operands.map!{|arg| arg.is_a?(Origami::Object) ? arg.value : arg}
    if self.class.has_op?(operator)
        opdef = self.class.get_operands(operator)
        if not opdef.include?('*') and opdef.size != operands.size
            raise InvalidPDFInstructionError,
                    "Numbers of operands mismatch for #{operator}: #{operands.inspect}"
        end
    end
end