inch 0.4.4.rc3 → 0.4.4.rc4
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: 14edad2e63192250ed780e03aa2d00577210bd72
|
4
|
+
data.tar.gz: f786cb7c61c07dcb19122a13a4d1f3ed6df8e60b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5444b36091c6def4f1eb5956ad75242e4f11a62474cf3141993fb865730fa90ef717d129ac8ac8a4a710f1e591555d7abff5695c166b0d8ccdd8aaede70148bd
|
7
|
+
data.tar.gz: cf05646415b2fdea77c8d85a6af743485d18b779753699909be9814cbaa8b2dfdc04df0c8ad60aeef26c4fcf25e2c3809115d4851509b3fe0acf9166a9d3e0d9
|
@@ -63,11 +63,14 @@ module Inch
|
|
63
63
|
overridden_method.fullname
|
64
64
|
end
|
65
65
|
|
66
|
+
# Returns +true+ if a return value is described by it's type or
|
67
|
+
# mentioned in the docstring (e.g. "Returns a String").
|
66
68
|
def return_mentioned?
|
67
|
-
return_tags.any? { |t| !t.types.empty? && !YARD.implicit_tag?(t, self) } ||
|
69
|
+
return_tags.any? { |t| !t.types.nil? && !t.types.empty? && !YARD.implicit_tag?(t, self) } ||
|
68
70
|
docstring.mentions_return? && !implicit_docstring?
|
69
71
|
end
|
70
72
|
|
73
|
+
# Returns +true+ if a return value is described by words.
|
71
74
|
def return_described?
|
72
75
|
return_tags.any? { |t| !t.text.empty? && !YARD.implicit_tag?(t, self) } ||
|
73
76
|
docstring.describes_return? && !implicit_docstring?
|
data/lib/inch/version.rb
CHANGED
@@ -28,6 +28,12 @@ module Foo
|
|
28
28
|
# @return [String]
|
29
29
|
def method_with_splat_parameter2(*names)
|
30
30
|
end
|
31
|
+
|
32
|
+
# The problem here is that the @return tag does not have brackets
|
33
|
+
#
|
34
|
+
# @return HasH
|
35
|
+
def method_with_wrong_return_tag
|
36
|
+
end
|
31
37
|
end
|
32
38
|
|
33
39
|
module Overloading
|