markdown_ruby_documentation 0.20.0 → 0.20.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7f43fcb5ea3295a31c893e57a1140942a84da75
|
4
|
+
data.tar.gz: bd12fd45554aaf6e89c28e8eca2a9d05b8d1617f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a95c4c33ee2ad473cdbb6b9af909206b51387a3b3bc992257baedd7169feb9f72fb689e9c92b385a4a0ee734c8e9edd0889d0214a08600063053a99105b4cfce
|
7
|
+
data.tar.gz: 8d7edd88ab7921318a097fb12b53be784beda084fb3d54c9e67acb5e844d7df0690119fa6f78ccfba571a169f1be4ddb295591e53de7524afecd393a30d34f49
|
@@ -8,10 +8,11 @@ module MarkdownRubyDocumentation
|
|
8
8
|
|
9
9
|
def call(interface)
|
10
10
|
_method = interface.reject do |_, meth|
|
11
|
-
meth[:
|
11
|
+
meth[:source_location] = meth[:method_object].to_proc.source_location
|
12
|
+
meth[:method_object].is_a?(NullMethod) || meth[:method_object].visibility != :native || meth[:source_location].first.include?(RUBY_VERSION)
|
12
13
|
end.first
|
13
14
|
if _method
|
14
|
-
filename, lineno = _method[1][:
|
15
|
+
filename, lineno = _method[1][:source_location]
|
15
16
|
comment = extract_dsl_comment(strip_comment_hash(comment(filename, lineno)+"\n"))
|
16
17
|
interface[:class_level_comment] = { text: comment }
|
17
18
|
end
|