End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Specification#doc_dir
doc_dir(type = nil)
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/specification.rb, line 1840
def doc_dir(type = nil)
@doc_dir ||= File.join base_dir, "doc", full_name
if type
File.join @doc_dir, type
else
@doc_dir
end
end
Returns the full path to this spec’s documentation directory. If type is given it will be appended to the end. For example:
Example
spec.doc_dir # => "/path/to/gem_repo/doc/a-1" spec.doc_dir 'ri' # => "/path/to/gem_repo/doc/a-1/ri"
See also
#development_dependencies
#_dump
#description=
#executable
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0