class Origami::Destination::Zoom
Class representing a Destination
zooming on a part of a document.
Public Class Methods
[](page, left: 0, top: 0, zoom: 0)
click to toggle source
Creates a new zoom Destination
.
# File lib/origami/destinations.rb, line 62 def self.[](page, left: 0, top: 0, zoom: 0) self.new([page, :XYZ, left, top, zoom]) end
new(array)
click to toggle source
Calls superclass method
Origami::Array::new
# File lib/origami/destinations.rb, line 50 def initialize(array) super(array) @page, _, @left, @top, @zoom = array end