class Origami::Destination::RectangleFit

Class representing a Destination fitting the view on a rectangle in a Page.

Public Class Methods

[](page, left: 0, bottom: 0, right: 0, top: 0) click to toggle source

Creates a new rectangle fit Destination.

page

The destination Page.

left, bottom, right, top

The rectangle to fit in.

# File lib/origami/destinations.rb, line 159
def self.[](page, left: 0, bottom: 0, right: 0, top: 0)
    self.new([page, :FitR, left, bottom, right, top])
end
new(array) click to toggle source
Calls superclass method Origami::Array::new
# File lib/origami/destinations.rb, line 148
def initialize(array)
    super(array)

    @page, _, @left, @bottom, @right, @top = array
end