Sha256: eb40b44d1ce269f18aded17691a4d2148db36ad55515545375c12d9e76da7849

Contents?: true

Size: 585 Bytes

Versions: 7

Compression:

Stored size: 585 Bytes

Contents

module YARD
  module Server
    module Commands
      # Returns the index of libraries served by the server.
      class LibraryIndexCommand < Base
        attr_accessor :options
        
        def run
          return unless path.empty?
          
          self.options = SymbolHash.new(false).update(
            :markup => :rdoc,
            :format => :html,
            :libraries => adapter.libraries,
            :adapter => adapter,
            :template => :doc_server,
            :type => :library_list
          )
          render
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
yard-0.6.8 lib/yard/server/commands/library_index_command.rb
yard-0.6.7 lib/yard/server/commands/library_index_command.rb
yard-0.6.6 lib/yard/server/commands/library_index_command.rb
yard-0.6.5 lib/yard/server/commands/library_index_command.rb
yard-0.6.4 lib/yard/server/commands/library_index_command.rb
yard-0.6.3 lib/yard/server/commands/library_index_command.rb
yard-0.6.2 lib/yard/server/commands/library_index_command.rb