Class: PDF::Inspector::Graphics::Line
- Inherits:
-
PDF::Inspector
- Object
- PDF::Inspector
- PDF::Inspector::Graphics::Line
- Defined in:
- lib/pdf/inspector/graphics.rb
Instance Attribute Summary collapse
-
#points ⇒ Object
Returns the value of attribute points.
-
#widths ⇒ Object
Returns the value of attribute widths.
Instance Method Summary collapse
- #append_line(*params) ⇒ Object
- #begin_new_subpath(*params) ⇒ Object
-
#initialize ⇒ Line
constructor
A new instance of Line.
- #set_line_width(params) ⇒ Object
Methods inherited from PDF::Inspector
Constructor Details
#initialize ⇒ Line
Returns a new instance of Line.
7 8 9 10 |
# File 'lib/pdf/inspector/graphics.rb', line 7 def initialize @points = [] @widths = [] end |
Instance Attribute Details
#points ⇒ Object
Returns the value of attribute points.
5 6 7 |
# File 'lib/pdf/inspector/graphics.rb', line 5 def points @points end |
#widths ⇒ Object
Returns the value of attribute widths.
5 6 7 |
# File 'lib/pdf/inspector/graphics.rb', line 5 def widths @widths end |
Instance Method Details
#append_line(*params) ⇒ Object
12 13 14 |
# File 'lib/pdf/inspector/graphics.rb', line 12 def append_line(*params) @points << params end |
#begin_new_subpath(*params) ⇒ Object
16 17 18 |
# File 'lib/pdf/inspector/graphics.rb', line 16 def begin_new_subpath(*params) @points << params end |
#set_line_width(params) ⇒ Object
20 21 22 |
# File 'lib/pdf/inspector/graphics.rb', line 20 def set_line_width(params) @widths << params end |