Module: Process::Path
- Defined in:
- lib/process/path.rb,
lib/process/path/os.rb,
lib/process/path/osx.rb,
lib/process/path/linux.rb,
lib/process/path/version.rb
Overview
Process::Path module
Defined Under Namespace
Modules: OS
Constant Summary collapse
- VERSION =
'0.1.2'
Class Method Summary collapse
-
.path ⇒ String
Returns the path to the current ruby running as a string.
Class Method Details
.path ⇒ String
Note:
Currently only osx and linux are supported.
Returns the path to the current ruby running as a string.
13 14 15 16 17 18 19 20 21 22 23 |
# 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 |