summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--dragon/array_docs.rb12
-rw-r--r--dragon/docs.rb4
2 files changed, 13 insertions, 3 deletions
diff --git a/dragon/array_docs.rb b/dragon/array_docs.rb
index 6ce8e37..93d12a5 100644
--- a/dragon/array_docs.rb
+++ b/dragon/array_docs.rb
@@ -5,7 +5,17 @@
module ArrayDocs
def docs_method_sort_order
- [:docs_class, :docs_map, :docs_each]
+ [
+ :docs_class,
+ :docs_map,
+ :docs_each,
+ :docs_reject_nil,
+ :docs_reject_false,
+ :docs_product,
+ :docs_map_2d,
+ :docs_include_any?,
+ :docs_any_intersect_rect?
+ ]
end
def docs_include_any?
diff --git a/dragon/docs.rb b/dragon/docs.rb
index fd0e6eb..e951173 100644
--- a/dragon/docs.rb
+++ b/dragon/docs.rb
@@ -184,13 +184,13 @@ S
final_string = ""
if self == Kernel
$docs_classes.each do |k|
- k.methods_with_docs.each do |m|
+ DocsOrganizer.find_methods_with_docs(k).each do |m|
s = k.send m
final_string += s + "\n" if block.call s
end
end
else
- methods_with_docs.each do |m|
+ DocsOrganizer.find_methods_with_docs(self).each do |m|
s = send m
final_string += s + "\n" if block.call s
end