Class: HexaPDF::Content::Operator::SetLineCapStyle
- Inherits:
-
SingleNumericArgumentOperator
- Object
- BaseOperator
- SingleNumericArgumentOperator
- HexaPDF::Content::Operator::SetLineCapStyle
- Defined in:
- lib/hexapdf/content/operator.rb
Overview
Implementation of the āJā operator.
See: PDF2.0 s8.4.4
Instance Attribute Summary
Attributes inherited from BaseOperator
Instance Method Summary collapse
-
#initialize ⇒ SetLineCapStyle
constructor
Creates the operator.
-
#invoke(processor, cap_style) ⇒ Object
:nodoc:.
Methods inherited from SingleNumericArgumentOperator
Methods inherited from BaseOperator
Constructor Details
#initialize ⇒ SetLineCapStyle
Creates the operator.
223 224 225 |
# File 'lib/hexapdf/content/operator.rb', line 223 def initialize super('J') end |
Instance Method Details
#invoke(processor, cap_style) ⇒ Object
:nodoc:
227 228 229 |
# File 'lib/hexapdf/content/operator.rb', line 227 def invoke(processor, cap_style) #:nodoc: processor.graphics_state.line_cap_style = LineCapStyle.normalize(cap_style) end |