Class: Dvi::Opcode::PostPost

Inherits:
Base
  • Object
show all
Defined in:
lib/dvi/opcode.rb

Overview

PostPost is a class for post_post opcode.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

range, set_range

Constructor Details

#initialize(pointer) ⇒ PostPost

Returns a new instance of PostPost.



493
494
495
# File 'lib/dvi/opcode.rb', line 493

def initialize(pointer)
  @pointer = pointer # a pointer to the post command
end

Class Method Details

.read(cmd, io) ⇒ Object

:nodoc:



497
498
499
500
501
502
503
504
505
# File 'lib/dvi/opcode.rb', line 497

def self.read(cmd, io) #:nodoc:
  pointer = io.read_uint4
  dvi_version = io.read_uint1
  # read padding 233
  io.read.unpack("C*").each do |i|
    raise Error unless i == 223
  end
  return self.new(pointer)
end

Instance Method Details

#interpret(ps) ⇒ Object



507
508
509
# File 'lib/dvi/opcode.rb', line 507

def interpret(ps)
  # ???
end