lib/jsduck/render/class.rb in jsduck-5.3.4 vs lib/jsduck/render/class.rb in jsduck-6.0.0beta
- old
+ new
@@ -1,8 +1,9 @@
require 'jsduck/render/tags'
require 'jsduck/render/sidebar'
require 'jsduck/tag_registry'
+require 'jsduck/member_registry'
module JsDuck
module Render
# Renders the whole documentation page for a class.
@@ -36,11 +37,11 @@
def render_sidebar
Render::Sidebar.new(@opts).render(@cls)
end
def render_all_sections
- TagRegistry.member_types.map do |member_type|
- render_section(member_type)
+ MemberRegistry.definitions.map do |member_def|
+ render_section(member_def)
end
end
def render_section(sec)
members = @cls[:members].find_all {|m| m[:tagname] == sec[:name] }