lib/inch/language/elixir/provider/reader/object/base.rb in inch-0.5.1 vs lib/inch/language/elixir/provider/reader/object/base.rb in inch-0.5.2
- old
+ new
@@ -74,11 +74,11 @@
fullname.split('.').size
end
# @return [Docstring]
def docstring
- @docstring ||= Docstring.new(@hash['doc'])
+ @docstring ||= Docstring.new(original_docstring)
end
def getter?
name =~ /^get_/ # raise NotImplementedError
end
@@ -182,10 +182,10 @@
def unconsidered_tag_count
0
end
def undocumented?
- @hash['doc'].nil?
+ original_docstring.nil? || original_docstring.to_s.strip.empty?
end
def visibility
:public
end