Class: Origami::Destination::GlobalFit
- Inherits:
-
Origami::Destination
- Object
- Array
- Array
- Origami::Destination
- Origami::Destination::GlobalFit
- Defined in:
- lib/origami/destinations.rb
Overview
Class representing a Destination showing a Page globally.
Constant Summary
Constants inherited from Array
Constants included from Object
Instance Attribute Summary
Attributes inherited from Origami::Destination
#bottom, #left, #page, #right, #top, #zoom
Attributes inherited from Array
#names_cache, #strings_cache, #xref_cache
Attributes included from Object
#file_offset, #generation, #no, #objstm_offset, #parent
Class Method Summary collapse
-
.[](page) ⇒ Object
Creates a new global fit Destination.
Instance Method Summary collapse
-
#initialize(array) ⇒ GlobalFit
constructor
A new instance of GlobalFit.
Methods inherited from Origami::Destination
GlobalBoundingBoxFit, GlobalFit, HorizontalBoudingBoxFit, HorizontalFit, RectangleFit, VerticalBoundingBoxFit, VerticalFit, Zoom
Methods inherited from Array
#+, #<<, #[]=, #cast_to, #concat, #copy, of, parse, #pre_build, #to_a, #to_obfuscated_str, #to_s
Methods included from Object
#<=>, #cast_to, #copy, #document, #export, included, #indirect?, #indirect_parent, #logicalize, #logicalize!, #native_type, parse, #post_build, #pre_build, #reference, #set_document, #set_indirect, skip_until_next_obj, #solve, #to_o, #to_s, #type, typeof, #version_required, #xrefs
Constructor Details
#initialize(array) ⇒ GlobalFit
Returns a new instance of GlobalFit.
77 78 79 80 81 |
# File 'lib/origami/destinations.rb', line 77 def initialize(array) super(array) @page, _ = array end |
Class Method Details
.[](page) ⇒ Object
Creates a new global fit Destination.
- page
-
The destination Page.
87 88 89 |
# File 'lib/origami/destinations.rb', line 87 def self.[](page) self.new([page, :Fit]) end |