Method: Origami::ExternalFile#initialize

Defined in:
lib/origami/filespec.rb

#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.



164
165
166
167
168
169
170
# File 'lib/origami/filespec.rb', line 164

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