Class: IEgrip::FileSystemObject

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/iegrip/GripWrapper.rb

Instance Method Summary collapse

Constructor Details

#initializeFileSystemObject

Returns a new instance of FileSystemObject.



55
56
57
# File 'lib/iegrip/GripWrapper.rb', line 55

def initialize
  @body =  WIN32OLE.new('Scripting.FileSystemObject')
end

Instance Method Details

#fullpath(filename) ⇒ Object



59
60
61
# File 'lib/iegrip/GripWrapper.rb', line 59

def fullpath(filename)
  @body.getAbsolutePathName(filename)
end

#GetFileVersion(fullpath) ⇒ Object



63
64
65
# File 'lib/iegrip/GripWrapper.rb', line 63

def GetFileVersion(fullpath)
  @body.GetFileVersion(fullpath)
end