Sha256: 06fba234bf2e256d02621d2174104e30e0c065694f4ced9051e0a70b002671b8
Contents?: true
Size: 1.11 KB
Versions: 4
Compression:
Stored size: 1.11 KB
Contents
module YARD module Server module Commands class ListCommand < LibraryCommand include Templates::Helpers::BaseHelper def items; raise NotImplementedError end def type; raise NotImplementedError end def run options.update(:items => items, :template => :doc_server, :list_type => request.path.split('/').last, :type => :full_list) render end end class ListClassesCommand < ListCommand def type; :class end def items Registry.load_all run_verifier(Registry.all(:class, :module)) end end class ListMethodsCommand < ListCommand include Templates::Helpers::ModuleHelper def type; :methods end def items Registry.load_all items = Registry.all(:method).sort_by {|m| m.name.to_s } prune_method_listing(items) end end class ListFilesCommand < ListCommand def type; :files end def items; options[:files] end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems