Method: MicroExiftool::File#initialize

Defined in:
lib/micro_exiftool/file.rb

#initialize(path) ⇒ File

Returns a new instance of File.



12
13
14
15
16
17
# File 'lib/micro_exiftool/file.rb', line 12

def initialize(path)
  @path = path.to_s
  unless ::File.exist?(@path)
    raise NoSuchFile.new("No such file: #{@path}")
  end
end