Sha256: b517f61f1c3d8e7ae532678b1cf931b35089e5f582894c2ef6ee5560c1d93c9f

Contents?: true

Size: 293 Bytes

Versions: 5

Compression:

Stored size: 293 Bytes

Contents

include T('default/appendix/html')

def init
  super
end

def appendix
  controllers = options[:controllers]

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

  @appendixes = controllers.collect { |c|
    c.children.select { |o| :appendix == o.type }
  }.flatten

  super
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yard-api-0.1.5 templates/api/appendix/html/setup.rb
yard-api-0.1.4 templates/api/appendix/html/setup.rb
yard-api-0.1.3 templates/api/appendix/html/setup.rb
yard-api-0.1.2 templates/api/appendix/html/setup.rb
yard-api-0.1.1 templates/api/appendix/html/setup.rb