Sha256: 01ab1b9a88a5bb8c96ae808d0fcab60d05e9eafc7cfd992bb473633e75f7b5aa

Contents?: true

Size: 673 Bytes

Versions: 30

Compression:

Stored size: 673 Bytes

Contents

module YARD
  module Server
    module Commands
      
      #
      # List Features powers the features menu option in `yard server`
      #
      class ListFeaturesCommand < ListCommand
        def type; :features end
        
        def items
          Registry.load_all
          run_verifier(Registry.all(:feature))
        end
      end
      
      #
      # List Tags powers the tags menu option in `yard server`
      #
      class ListTagsCommand < ListCommand
        def type; :tags end
        
        def items
          Registry.load_all
          run_verifier(Registry.all(:tag).sort_by {|t| t.value.to_s })
        end
      end
      
    end
  end
end

Version data entries

30 entries across 30 versions & 4 rubygems

Version Path
yard-gherkin-turnip-1.0.2 lib/yard/server/commands/list_command.rb
yard-gherkin-turnip-1.0.1 lib/yard/server/commands/list_command.rb
yard-gherkin-turnip-1.0.0 lib/yard/server/commands/list_command.rb
yard-nrser-cucumber-0.1.3 lib/yard/server/commands/list_command.rb
yard-nrser-cucumber-0.1.2 lib/yard/server/commands/list_command.rb
yard-nrser-cucumber-0.1.1 lib/yard/server/commands/list_command.rb
yard-nrser-cucumber-0.1.0 lib/yard/server/commands/list_command.rb
yard-cucumber-4.0.0 lib/yard/server/commands/list_command.rb
yard-cucumber-3.1.0 lib/yard/server/commands/list_command.rb
yard-cucumber-3.0.0 lib/yard/server/commands/list_command.rb
yard-cucumber2-2.3.4 lib/yard/server/commands/list_command.rb
yard-cucumber2-2.3.3 lib/yard/server/commands/list_command.rb
yard-cucumber-2.3.2 lib/yard/server/commands/list_command.rb
yard-cucumber-2.3.1 lib/yard/server/commands/list_command.rb
yard-cucumber-2.3.0 lib/yard/server/commands/list_command.rb
yard-cucumber-2.2.3 lib/yard/server/commands/list_command.rb
yard-cucumber-2.2.2 lib/yard/server/commands/list_command.rb
yard-cucumber-2.2.1 lib/yard/server/commands/list_command.rb
yard-cucumber-2.2.0 lib/yard/server/commands/list_command.rb
yard-cucumber-2.1.7 lib/yard/server/commands/list_command.rb