Flowdock
method

create_temp_html

Importance_0
v1_8_6_287 - Show latest stable - 0 notes - Class: TestWIN32OLE_EVENT
create_temp_html() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File ext/win32ole/tests/test_win32ole_event.rb, line 9
    def create_temp_html
      fso = WIN32OLE.new('Scripting.FileSystemObject')
      dummy_file = fso.GetTempName + ".html"
      cfolder = fso.getFolder(".")
      f = cfolder.CreateTextFile(dummy_file)
      f.writeLine("<html><body>This is test HTML file for Win32OLE.</body></html>")
      f.close
      dummy_path = cfolder.path + "\\" + dummy_file
      dummy_path
    end
Register or log in to add new notes.