Class: Excelgrip::FileSystemObject

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

Instance Method Summary collapse

Constructor Details

#initializeFileSystemObject

Returns a new instance of FileSystemObject.



46
47
48
# File 'lib/excelgrip/GripWrapper.rb', line 46

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

Instance Method Details

#fullpath(filename) ⇒ Object



50
51
52
# File 'lib/excelgrip/GripWrapper.rb', line 50

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