Module Origami::PDF::Instruction
In: sources/parser/graphics/instruction.rb

Methods

new   to_s   update_state  

Attributes

operands  [RW] 
operator  [RW] 

Public Class methods

[Source]

    # File sources/parser/graphics/instruction.rb, line 32
32:     def initialize(operator, *operands)
33:       @operator = operator
34:       @operands = operands
35:     end

Public Instance methods

[Source]

    # File sources/parser/graphics/instruction.rb, line 37
37:     def to_s
38:       "#{operands.map!{|op| op.to_o.to_s}.join(' ')}#{' ' unless operands.empty?}#{operator}\n"
39:     end

[Source]

    # File sources/parser/graphics/instruction.rb, line 41
41:     def update_state(gs); self end

[Validate]