Module: LLM::Gem

Includes:
Gem
Included in:
Gem
Defined in:
lib/llm/core_ext/gem.rb

Overview

Ractor-safe Gem methods.

Instance Method Summary collapse

Instance Method Details

#default_bindir ⇒ Object



10
11
12
# File 'lib/llm/core_ext/gem.rb', line 10

def default_bindir
  RbConfig::RACTOR_CONFIG["bindir"]
end

#default_dir ⇒ Object



16
17
18
19
20
21
22
# File 'lib/llm/core_ext/gem.rb', line 16

def default_dir
  File.join(
    RbConfig::RACTOR_CONFIG["rubylibprefix"],
    "gems",
    RbConfig::RACTOR_CONFIG["ruby_version"]
  )
end