Class: HexaPDF::Content::Operator::SetLineWidth
- Inherits:
-
SingleNumericArgumentOperator
- Object
- BaseOperator
- SingleNumericArgumentOperator
- HexaPDF::Content::Operator::SetLineWidth
- Defined in:
- lib/hexapdf/content/operator.rb
Overview
Implementation of the ‘w’ operator.
See: PDF2.0 s8.4.4
Instance Attribute Summary
Attributes inherited from BaseOperator
Instance Method Summary collapse
-
#initialize ⇒ SetLineWidth
constructor
Creates the operator.
-
#invoke(processor, width) ⇒ Object
:nodoc:.
Methods inherited from SingleNumericArgumentOperator
Methods inherited from BaseOperator
Constructor Details
#initialize ⇒ SetLineWidth
Creates the operator.
207 208 209 |
# File 'lib/hexapdf/content/operator.rb', line 207 def initialize super('w') end |
Instance Method Details
#invoke(processor, width) ⇒ Object
:nodoc:
211 212 213 |
# File 'lib/hexapdf/content/operator.rb', line 211 def invoke(processor, width) #:nodoc: processor.graphics_state.line_width = width end |