Class: Dvi::Opcode::Push

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

Overview

Push is a class for push opcode.

Instance Method Summary collapse

Methods inherited from Base

range, read, set_range

Instance Method Details

#interpret(ps) ⇒ Object



186
187
188
189
# File 'lib/dvi/opcode.rb', line 186

def interpret(ps)
  # push current registry to the stack.
  ps.stack.push([ps.h, ps.v, ps.w, ps.x, ps.y, ps.z])
end