Class: Windows::FileSystem
- Inherits:
-
Object
- Object
- Windows::FileSystem
- Defined in:
- lib/microstation/app.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.windows_path(path) ⇒ Object
17 18 19 20 |
# File 'lib/microstation/app.rb', line 17 def self.windows_path(path) obj = new obj.windows_path(path) end |
Instance Method Details
#fs_object ⇒ Object
22 23 24 |
# File 'lib/microstation/app.rb', line 22 def fs_object @fs_object ||= WIN32OLE.new('Scripting.FileSystemObject') end |
#windows_path(path) ⇒ Object
26 27 28 29 |
# File 'lib/microstation/app.rb', line 26 def windows_path(path) path = path.to_path if path.respond_to? :to_path fs_object.GetAbsolutePathName(path.to_str) end |