Sha256: 4ad782377e690c944ca617e7fbc05817c40038f658ecb3a2d59aa673f0d3257a

Contents?: true

Size: 662 Bytes

Versions: 2

Compression:

Stored size: 662 Bytes

Contents

def init
  # sections :header, [:topic_doc, :method_details_list, [T('method_details')]]
  sections :method_details_list, [T('method_details')]
  @resource = object
  # @beta = options[:controllers].any? { |c| c.tag('beta') }
  puts "Topic: HEE? #{@resource}"
end

def method_details_list
  @meths = options[:controllers].map { |c| c.meths(:inherited => false, :included => false) }.flatten
  @meths = run_verifier(@meths)

  # puts "Methods: #{@meths}"

  buffer = [];

  @meths.each_with_index do |meth, i|
    # puts "#{i} => #{meth.tags}"
    buffer.push(yieldall :object => meth, :index => i)
  end

  puts "Buffer: #{buffer.to_json}"

  buffer.to_json
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yard-api-0.2.2 templates/api/topic/json/setup.rb
yard-api-0.2.1 templates/api/topic/json/setup.rb