class Poppler::Rectangle

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# File lib/poppler/rectangle.rb, line 20
def initialize(*args)
  super()
  return if args.empty?

  self.x1 = args[0]
  self.y1 = args[1]
  self.x2 = args[2]
  self.y2 = args[3]
end
Also aliased as: initialize_raw

Public Instance Methods

initialize_raw(*args)
Alias for: new
inspect() click to toggle source
Calls superclass method
# File lib/poppler/rectangle.rb, line 34
def inspect
  super.gsub(/>\z/) do
    ": [%g, %g, %g, %g]>" % to_a
  end
end
to_a() click to toggle source
# File lib/poppler/rectangle.rb, line 30
def to_a
  [x1, y1, x2, y2]
end