Class: PDF::Inspector::Graphics::Rectangle

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

#initializeRectangle

Returns a new instance of Rectangle.



29
30
31
# File 'lib/pdf/inspector/graphics.rb', line 29

def initialize
  @rectangles = []     
end

Instance Attribute Details

#rectanglesObject (readonly)

Returns the value of attribute rectangles.



27
28
29
# File 'lib/pdf/inspector/graphics.rb', line 27

def rectangles
  @rectangles
end

Instance Method Details

#append_rectangle(*params) ⇒ Object



33
34
35
36
37
# File 'lib/pdf/inspector/graphics.rb', line 33

def append_rectangle(*params) 
  @rectangles << { :point  => params[0..1],    
                   :width  => params[2],
                   :height => params[3]  }     
end