markdown_ruby_documentation 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eb222c7ee603c946c0da5a7ea8e542aacbec796d
|
|
4
|
+
data.tar.gz: 83eb98d15f1d32471465b0e35ffd1b707998a065
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8fd854a9b01b58d70012c293d5743c7d1632af4f52ac5bba8519885945c6e7ef40d0fc641a6ae5f5b958b9212c8b39d4e5dd7db144e6f8a3911e265cc2663ea7
|
|
7
|
+
data.tar.gz: 07c9d9e75aa91ba7f4c9adcc6ee9c71ba681895773ea5dc83a11bbdfa6d2e1c374efffa48905bbe593ffd329ae4499721f048707f93b218b31573b8ee6f49af6
|
|
@@ -272,7 +272,12 @@ module MarkdownRubyDocumentation
|
|
|
272
272
|
end.to_s.titleize
|
|
273
273
|
end
|
|
274
274
|
|
|
275
|
+
IGNORE_METHOD_OWNERS = [
|
|
276
|
+
Object
|
|
277
|
+
]
|
|
278
|
+
|
|
275
279
|
def link_to_markdown_method_reference(method_reference:, title:, ruby_class:)
|
|
280
|
+
return title if IGNORE_METHOD_OWNERS.include?(ruby_class)
|
|
276
281
|
method = MarkdownRubyDocumentation::Method.create(method_reference, null_method: true, context: ruby_class)
|
|
277
282
|
parts = method.context_name.to_s.split("::").reject(&:blank?)
|
|
278
283
|
path = parts.map { |p| p.underscore }.join("/")
|