lib/weneedfeed/item.rb in weneedfeed-0.7.0 vs lib/weneedfeed/item.rb in weneedfeed-0.7.1
- old
+ new
@@ -71,12 +71,12 @@
return unless string
self.class.parse_time(string)
end
- # @return [String]
+ # @return [String, nil]
def title
- @node.at(@title_selector).inner_text
+ @node.at(@title_selector)&.inner_text
end
private
# @return [Nokogiri::Node, nil]