Sha256: 28d36be1a7554e03a07b51a2392bfe1c0945ad7e5bb119eb3bc7721a6589ccc8

Contents?: true

Size: 474 Bytes

Versions: 20

Compression:

Stored size: 474 Bytes

Contents

include T('default/appendix/html')

def init
  super
end

def appendix
  controllers = options[:controllers]

  if options[:all_resources]
    controllers = options[:resources].flatten.select { |o|
      o.is_a?(YARD::CodeObjects::NamespaceObject)
    }
  end

  unless controllers && controllers.is_a?(Array)
    return
  end

  @appendixes = controllers.collect do |controller|
    controller.children.select { |tag| :appendix == tag.type }
  end.flatten.uniq

  super
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
yard-api-1.1.2 templates/api/appendix/html/setup.rb
yard-api-1.1.1 templates/api/appendix/html/setup.rb
yard-api-1.1.0 templates/api/appendix/html/setup.rb
yard-api-1.0.1 templates/api/appendix/html/setup.rb
yard-api-1.0.0 templates/api/appendix/html/setup.rb
yard-api-0.3.7 templates/api/appendix/html/setup.rb
yard-api-0.3.6 templates/api/appendix/html/setup.rb
yard-api-0.3.5 templates/api/appendix/html/setup.rb
yard-api-0.3.4 templates/api/appendix/html/setup.rb
yard-api-0.3.3 templates/api/appendix/html/setup.rb
yard-api-0.3.2 templates/api/appendix/html/setup.rb
yard-api-0.3.1 templates/api/appendix/html/setup.rb
yard-api-0.3.0 templates/api/appendix/html/setup.rb
yard-api-0.2.3 templates/api/appendix/html/setup.rb
yard-api-0.2.2 templates/api/appendix/html/setup.rb
yard-api-0.2.1 templates/api/appendix/html/setup.rb
yard-api-0.1.10 templates/api/appendix/html/setup.rb
yard-api-0.1.8 templates/api/appendix/html/setup.rb
yard-api-0.1.7 templates/api/appendix/html/setup.rb
yard-api-0.1.6 templates/api/appendix/html/setup.rb