Skip to content

Commit

Permalink
Ignore @Private classes/modules.
Browse files Browse the repository at this point in the history
Closes gh-46
  • Loading branch information
lsegal committed Nov 29, 2009
1 parent 4942b82 commit b99219d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions templates/default/fulldoc/html/setup.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include Helpers::ModuleHelper

def init
objects = options[:objects]
options[:objects] = objects = run_verifier(options[:objects])
options[:files] = ([options[:readme]] + options[:files]).compact.map {|t| t.to_s }
options[:readme] = options[:files].first
options[:title] ||= "Documentation by YARD #{YARD::VERSION}"
Expand All @@ -14,10 +14,7 @@ def init

options.delete(:objects)
options.delete(:files)
objects.each do |object|
next if options[:verifier] && options[:verifier].call(object).is_a?(FalseClass)
serialize(object)
end
objects.each {|object| serialize(object) }
end

def serialize(object)
Expand Down
2 changes: 1 addition & 1 deletion templates/default/module/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def children
@inner[0][1] << child if child.type == :module
@inner[1][1] << child if child.type == :class
end
@inner.map! {|v| [v[0], run_verifier(v[1].sort_by {|o| o.name.to_s })] }
return if (@inner[0][1].size + @inner[1][1].size) == 0
@inner.map! {|v| [v[0], v[1].sort_by {|o| o.name.to_s }] }
erb(:children)
end

Expand Down

0 comments on commit b99219d

Please sign in to comment.