Class: Origami::ExternalFile
- Inherits:
-
FileSpec
- Object
- Hash
- Dictionary
- FileSpec
- Origami::ExternalFile
- Defined in:
- lib/origami/file.rb
Overview
A class representing a file outside the current PDF file.
Constant Summary
Constants included from StandardObject
StandardObject::DEFAULT_ATTRIBUTES
Constants inherited from Dictionary
Constants included from Object
Instance Attribute Summary
Attributes inherited from Dictionary
#names_cache, #strings_cache, #xref_cache
Attributes included from Object
#file_offset, #generation, #no, #objstm_offset, #parent
Instance Method Summary collapse
-
#initialize(dos, mac = "", unix = "") ⇒ ExternalFile
constructor
Creates a new external file specification.
Methods included from StandardObject
#do_type_check, #has_field?, included, #pdf_version_required, #pre_build, #set_default_value, #set_default_values
Methods inherited from Dictionary
#[], #[]=, add_type_info, #cast_to, #copy, #delete, guess_type, #has_key?, hint_type, #map!, #merge, #method_missing, native_type, parse, #to_obfuscated_str, #to_s
Methods included from Object
#<=>, #cast_to, #copy, #export, #indirect_parent, #is_indirect?, #logicalize, #logicalize!, native_type, #native_type, parse, #pdf, #pdf_version_required, #post_build, #pre_build, #reference, #resolve_all_references, #set_indirect, #set_pdf, #size, skip_until_next_obj, #solve, #to_o, #to_s, #type, typeof, #xrefs
Methods inherited from Hash
Constructor Details
#initialize(dos, mac = "", unix = "") ⇒ ExternalFile
Creates a new external file specification.
- dos
-
The Windows path to this file.
- mac
-
The MacOS path to this file.
- unix
-
The UNIX path to this file.
193 194 195 196 197 198 199 200 201 |
# File 'lib/origami/file.rb', line 193 def initialize(dos, mac = "", unix = "") if not mac.empty? or not unix.empty? super(:DOS => Filename.DOS(dos), :Mac => Filename.Mac(mac), :Unix => Filename.Unix(unix)) else super(:F => dos) end end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Origami::Dictionary