Class: PDF::Inspector::Graphics::Line

Inherits:
PDF::Inspector show all
Defined in:
lib/pdf/inspector/graphics.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from PDF::Inspector

analyze, analyze_file, parse

Constructor Details

#initializeLine

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

#pointsObject

Returns the value of attribute points.



5
6
7
# File 'lib/pdf/inspector/graphics.rb', line 5

def points
  @points
end

#widthsObject

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