class Origami::Destination::HorizontalFit

Class representing a Destination fitting a Page horizontally.

Public Class Methods

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

Creates a new horizontal fit destination.

page

The destination Page.

top

The vertical coord in the Page.

# File lib/origami/destinations.rb, line 112
def self.[](page, top: 0)
    self.new([page, :FitH, top])
end
new(array) click to toggle source
Calls superclass method Origami::Array::new
# File lib/origami/destinations.rb, line 101
def initialize(array)
    super(array)

    @page, _, @top = array
end