This is the base command for all commands that deal directly with libraries. Some commands do not, but most (like {DisplayObjectCommand}) do. If your command deals with libraries directly, subclass this class instead. See {Base} for notes on how to subclass a command.
@abstract
@return [Boolean] whether to reparse data
@return [LibraryVersion] the object containing library information
@return [LibraryOptions] default options for the library
@return [Serializers::Base] the serializer used to perform file linking
@return [Boolean] whether router should route for multiple libraries
# File lib/yard/server/commands/library_command.rb, line 51 def initialize(opts = {}) super self.serializer = DocServerSerializer.new end
# File lib/yard/server/commands/library_command.rb, line 56 def call(request) save_default_template_info self.request = request self.options = LibraryOptions.new self.options.reset_defaults self.options.command = self setup_library self.options.title = "Documentation for #{library.name} " + (library.version ? '(' + library.version + ')' : '') super rescue LibraryNotPreparedError not_prepared ensure restore_template_info end