Class: IEgrip::FileSystemObject
- Inherits:
-
Object
- Object
- IEgrip::FileSystemObject
- Includes:
- Singleton
- Defined in:
- lib/iegrip/GripWrapper.rb
Instance Method Summary collapse
- #fullpath(filename) ⇒ Object
- #GetFileVersion(fullpath) ⇒ Object
-
#initialize ⇒ FileSystemObject
constructor
A new instance of FileSystemObject.
Constructor Details
#initialize ⇒ FileSystemObject
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 |