Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::BasicSpecification#datadir
datadir
lib/rubygems/basic_specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/basic_specification.rb, line 166
def datadir
# TODO: drop the extra ", gem_name" which is uselessly redundant
File.expand_path(File.join(gems_dir, full_name, "data", name))
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.2 · 3.1 · 3.0