Module: Ocran::HostConfigHelper

Included in:
Direction
Defined in:
lib/ocran/host_config_helper.rb

Overview

Variables describing the host’s build environment.

Class Method Summary collapse

Class Method Details

.bindirObject



17
18
19
# File 'lib/ocran/host_config_helper.rb', line 17

def bindir
  @bindir ||= Pathname.new(RbConfig::CONFIG["bindir"])
end

.exe_extnameObject



25
26
27
# File 'lib/ocran/host_config_helper.rb', line 25

def exe_extname
  RbConfig::CONFIG["EXEEXT"] || ".exe"
end

.exec_prefixObject



9
10
11
# File 'lib/ocran/host_config_helper.rb', line 9

def exec_prefix
  @exec_prefix ||= Pathname.new(RbConfig::CONFIG["exec_prefix"])
end

.libruby_soObject



21
22
23
# File 'lib/ocran/host_config_helper.rb', line 21

def libruby_so
  @libruby_so ||= Pathname.new(RbConfig::CONFIG["LIBRUBY_SO"])
end

.ruby_exeObject



33
34
35
# File 'lib/ocran/host_config_helper.rb', line 33

def ruby_exe
  @ruby_exe ||= (RbConfig::CONFIG["ruby_install_name"] || "ruby") + exe_extname
end

.rubyw_exeObject



29
30
31
# File 'lib/ocran/host_config_helper.rb', line 29

def rubyw_exe
  @rubyw_exe ||= (RbConfig::CONFIG["rubyw_install_name"] || "rubyw") + exe_extname
end

.sitelibdirObject



13
14
15
# File 'lib/ocran/host_config_helper.rb', line 13

def sitelibdir
  @sitelibdir ||= Pathname.new(RbConfig::CONFIG["sitelibdir"])
end