Class: Pdfrb::Content::Operator::Stroke

Inherits:
NoArg
  • Object
show all
Defined in:
lib/pdfrb/content/operators/painting.rb

Overview

Path painting operators (s8.5.3). Each calls a paint_path hook on the Processor with the right (fill, stroke, close) flag tuple so renderers can dispatch one method.

Class Method Summary collapse

Methods inherited from NoArg

serialize

Methods inherited from Base

register, serialize

Class Method Details

.invoke(processor) ⇒ Object



12
13
14
# File 'lib/pdfrb/content/operators/painting.rb', line 12

def self.invoke(processor, *)
  processor.paint_path(fill: false, stroke: true, close: false, rule: :nonzero)
end

.nameObject



11
# File 'lib/pdfrb/content/operators/painting.rb', line 11

def self.name; "S"; end