Sha256: f695564bb695205f5d9993ff6354e4f9584bd3a6dbe33ccbfda850a757e4416b
Contents?: true
Size: 790 Bytes
Versions: 3
Compression:
Stored size: 790 Bytes
Contents
module YARD module Server # # The YARD::Server::Router needs the following modification, # so that it will provide routing for the features and tags commands # to their appropriate definitions # Router.class_eval do alias_method :core_route_list, :route_list # # Provide the full list of features and tags # def route_list(library, paths) if paths && !paths.empty? && paths.first =~ /^(?:features|tags)$/ case paths.shift when "features"; cmd = Commands::ListFeaturesCommand when "tags"; cmd = Commands::ListTagsCommand end cmd.new(final_options(library, paths)).call(request) else core_route_list(library,paths) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yard-gherkin-turnip-1.0.2 | lib/yard/server/router.rb |
yard-gherkin-turnip-1.0.1 | lib/yard/server/router.rb |
yard-gherkin-turnip-1.0.0 | lib/yard/server/router.rb |