Module: LLM::RbConfig

Includes:
RbConfig
Included in:
RbConfig
Defined in:
lib/llm/core_ext/rbconfig.rb

Overview

Ractor-safe RbConfig methods

Constant Summary collapse

RACTOR_CONFIG =
Ractor.new(RbConfig::CONFIG) { Ractor.make_shareable(it) }.value

Instance Method Summary collapse

Instance Method Details

#ruby ⇒ Object



18
19
20
21
22
23
# File 'lib/llm/core_ext/rbconfig.rb', line 18

def ruby
  File.join(
    RACTOR_CONFIG["bindir"],
    RACTOR_CONFIG["ruby_install_name"] + RACTOR_CONFIG["EXEEXT"]
  )
end