Method: YARD::Server::LibraryVersion#yardoc_file_for_gem

Defined in:
lib/yard/server/library_version.rb

#yardoc_file_for_gemString (protected)

Returns the yardoc file for a gem source.

Returns:

  • (String)

    the yardoc file for a gem source

Since:

  • 0.6.0



253
254
255
256
257
# File 'lib/yard/server/library_version.rb', line 253

def yardoc_file_for_gem
  require 'rubygems'
  ver = version ? "= #{version}" : ">= 0"
  Registry.yardoc_file_for_gem(name, ver)
end