Class: PDF::Inspector::Graphics::Curve

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

#initializeCurve

Returns a new instance of Curve.



44
45
46
# File 'lib/pdf/inspector/graphics.rb', line 44

def initialize
  @coords = []          
end

Instance Attribute Details

#coordsObject (readonly)

Returns the value of attribute coords.



42
43
44
# File 'lib/pdf/inspector/graphics.rb', line 42

def coords
  @coords
end

Instance Method Details

#append_curved_segment(*params) ⇒ Object



52
53
54
# File 'lib/pdf/inspector/graphics.rb', line 52

def append_curved_segment(*params)
  @coords += params
end

#begin_new_subpath(*params) ⇒ Object



48
49
50
# File 'lib/pdf/inspector/graphics.rb', line 48

def begin_new_subpath(*params)   
  @coords += params
end