module Process::Path
Process::Path
module
Constants
- VERSION
Public Class Methods
path()
click to toggle source
Returns the path to the current ruby running as a string. @return [String] The path to the current ruby running as a string. @note Currently only osx and linux are supported.
# File lib/process/path.rb, line 13 def self.path if Process::Path::OS.mac? require_relative 'path/osx' Process::Path::OSXImpl.path elsif Process::Path::OS.linux? require_relative 'path/linux' Process::Path::LinuxImpl.path else raise 'Not implemented' end end