Module: Postsvg::Visitors::PsVisitor::Device

Included in:
Postsvg::Visitors::PsVisitor
Defined in:
lib/postsvg/visitors/ps_visitor/device.rb

Overview

Device / page operator handlers. In a single-page SVG render these are largely no-ops; they exist so programs that end with showpage parse cleanly.

Instance Method Summary collapse

Instance Method Details

#visit_copypage(_op, _ctx) ⇒ Object



14
# File 'lib/postsvg/visitors/ps_visitor/device.rb', line 14

def visit_copypage(_op, _ctx); end

#visit_nulldevice(_op, _ctx) ⇒ Object



16
# File 'lib/postsvg/visitors/ps_visitor/device.rb', line 16

def visit_nulldevice(_op, _ctx); end

#visit_showpage(_op, _ctx) ⇒ Object



10
11
12
# File 'lib/postsvg/visitors/ps_visitor/device.rb', line 10

def visit_showpage(_op, _ctx)
  # No-op: SVG is single-page; the renderer finalises on close.
end