Class: Dvi::Opcode::Pop

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

Overview

Pop is a class for pop opcode.

Instance Method Summary collapse

Methods inherited from Base

range, read, set_range

Instance Method Details

#interpret(ps) ⇒ Object



195
196
197
198
# File 'lib/dvi/opcode.rb', line 195

def interpret(ps)
  # pop the stack and set it to current registry.
  ps.h, ps.v, ps.w, ps.x, ps.y, ps.z = ps.stack.pop
end