Method: YARD::Server::LibraryVersion#source_path_for_gem

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

#source_path_for_gemString (protected)

Returns the source path for a gem source.

Returns:

  • (String)

    the source path for a gem source

Since:

  • 0.6.0



248
249
250
# File 'lib/yard/server/library_version.rb', line 248

def source_path_for_gem
  gemspec.full_gem_path if gemspec
end