End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::BasicSpecification#datadir
datadir
lib/rubygems/basic_specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems/basic_specification.rb, line 161
def datadir
# TODO: drop the extra ", gem_name" which is uselessly redundant
File.expand_path(File.join(gems_dir, full_name, "data", name)).tap(&Gem::UNTAINT)
end
The path to the data directory for this gem.
See also
#contains_requirable_file?
#default_gem?
#base_dir
#extension_dir
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1