markdown_ruby_documentation 0.20.1 → 0.20.2
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: a6dfcca51c06892aecf2b21ed0ebc2990b5ecf9a
|
4
|
+
data.tar.gz: f33ca187bb9c49faf504ff50b21f118183b6a8d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1b8645d4b2178ea543083bd72dfba5390de5e48e0331949bf188c5d014d9fa848fec25949d61da79a38379d370da3e9b79775157e87ba8ca3a2aab593e96634
|
7
|
+
data.tar.gz: f213dc69ceb6592eda622c7b2560e6179ef61faa444fcb3baffe421ce595d3e4be3a55fc0d49df6cb661f586cd20a81dcf4b98b862d16937239c77bae506da3f
|
@@ -8,11 +8,10 @@ module MarkdownRubyDocumentation
|
|
8
8
|
|
9
9
|
def call(interface)
|
10
10
|
_method = interface.reject do |_, meth|
|
11
|
-
meth[:
|
12
|
-
meth[:method_object].is_a?(NullMethod) || meth[:method_object].visibility != :native || meth[:source_location].first.include?(RUBY_VERSION)
|
11
|
+
meth[:method_object].is_a?(NullMethod) || meth[:method_object].visibility != :native || meth[:method_object].to_proc.source_location.first.include?(RUBY_VERSION)
|
13
12
|
end.first
|
14
13
|
if _method
|
15
|
-
filename, lineno = _method[1][:source_location
|
14
|
+
filename, lineno = _method[1][:method_object].to_proc.source_location
|
16
15
|
comment = extract_dsl_comment(strip_comment_hash(comment(filename, lineno)+"\n"))
|
17
16
|
interface[:class_level_comment] = { text: comment }
|
18
17
|
end
|