Module: EMDirWatcher::Platform::Windows

Defined in:
lib/em-dir-watcher/platform/windows.rb,
lib/em-dir-watcher/platform/windows/path_to_ruby_exe.rb

Defined Under Namespace

Modules: TcpHandler Classes: Watcher

Class Method Summary collapse

Class Method Details

.path_to_ruby_exeObject



14
15
16
17
18
# File 'lib/em-dir-watcher/platform/windows/path_to_ruby_exe.rb', line 14

def self.path_to_ruby_exe
  buf = 0.chr * 260
  GetModuleFileName.call(0, buf, buf.length)
  buf.strip 
end