Class: Windows::FileSystem

Inherits:
Object
  • Object
show all
Defined in:
lib/microstation/app.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.windows_path(path) ⇒ Object



7
8
9
10
# File 'lib/microstation/app.rb', line 7

def self.windows_path(path)
  obj = new
  obj.windows_path(path)
end

Instance Method Details

#fs_objectObject



12
13
14
# File 'lib/microstation/app.rb', line 12

def fs_object
  @fs_object ||= WIN32OLE.new('Scripting.FileSystemObject')
end

#windows_path(path) ⇒ Object



16
17
18
19
# File 'lib/microstation/app.rb', line 16

def windows_path(path)
  path = path.to_path if path.respond_to? :to_path
  fs_object.GetAbsolutePathName(path.to_str)
end