class WikidataPositionHistory::Check::WrongSuccessor
Does the 'replaced by' match the next item in the list?
Public Instance Methods
headline()
click to toggle source
# File lib/wikidata_position_history/checks.rb, line 129 def headline 'Inconsistent successor' end
possible_explanation()
click to toggle source
# File lib/wikidata_position_history/checks.rb, line 133 def possible_explanation "#{current.officeholder.qlink} has a {{P|1366}} of #{successor_qlink}, but is followed by #{later.officeholder.qlink} here" end
problem?()
click to toggle source
# File lib/wikidata_position_history/checks.rb, line 125 def problem? later_holder? && !!successor_qlink && (later.officeholder.qlink != successor_qlink) end