lib/origami/graphics/instruction.rb in origami-1.2.4 vs lib/origami/graphics/instruction.rb in origami-1.2.5

- old
+ new

@@ -3,11 +3,11 @@ = File graphics/instruction.rb = Info This file is part of Origami, PDF manipulation framework for Ruby - Copyright (C) 2010 Guillaume Delugré <guillaume@security-labs.org> + Copyright (C) 2010 Guillaume Delugré <guillaume AT security-labs DOT org> All right reserved. Origami is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or @@ -52,11 +52,11 @@ self end def to_s - "#{operands.map!{|op| op.to_o.to_s}.join(' ')}#{' ' unless operands.empty?}#{operator}\n" + "#{operands.map{|op| op.to_o.to_s}.join(' ')}#{' ' unless operands.empty?}#{operator}\n" end class << self def insn(operator, *operands, &render_proc) @insns[operator] = {} @@ -77,10 +77,10 @@ end def parse(stream) operands = [] while type = Object.typeof(stream, true) - operands.unshift type.parse(stream) + operands.push type.parse(stream) end if not stream.eos? if stream.scan(@@regexp).nil? raise InvalidPDFInstructionError,