lib/inch/language/ruby/provider/yard/docstring.rb in inch-0.5.0.rc11 vs lib/inch/language/ruby/provider/yard/docstring.rb in inch-0.5.0
- old
+ new
@@ -42,18 +42,18 @@
end
end
def mentions_return?
last_lines.any? do |line|
- line =~ /^#{tomdoc_modifiers}Returns\ /
+ line =~ /^#{tomdoc_modifiers}(Returns|Gets|Sets|Gets\/Sets)\ /
end
end
def describes_return?
last_lines.any? do |line|
- line =~ /^#{tomdoc_modifiers}Returns\ (\w+\s){2,}/i ||
- line =~ /^#{tomdoc_modifiers}Returns\ (nil|nothing)\.*/i
+ line =~ /^#{tomdoc_modifiers}(Returns|Gets|Sets|Gets\/Sets)\ (\w+\s){2,}/i ||
+ line =~ /^#{tomdoc_modifiers}(Returns|Gets|Sets|Gets\/Sets)\ (nil|nothing)\.*/i
end
end
def to_s
@text
@@ -109,10 +109,10 @@
/\`#{expr}\`/, # `param1`
/\+#{expr}\+/, # +param1+
/\+#{expr}\+\:\:/, # +param1+::
/<tt>#{expr}<\/tt>/, # <tt>param1</tt>
/<tt>#{expr}<\/tt>\:\:/, # <tt>param1</tt>::
- /^#{expr}\ \-\ / # param1 -
+ /^#{expr}\ +\-\ / # param1 -
]
end
# Returns possible notations for +name+.
# matches "param1" and "param1<String,nil>"