Class: WikidataPositionHistory::Check::WrongPredecessor
Overview
Does the ‘replaces’ match the previous item in the list?
Instance Method Summary
collapse
#explanation, #initialize
Instance Method Details
#headline ⇒ Object
98
99
100
|
# File 'lib/wikidata_position_history/checks.rb', line 98
def headline
'Inconsistent predecessor'
end
|
#possible_explanation ⇒ Object
102
103
104
|
# File 'lib/wikidata_position_history/checks.rb', line 102
def possible_explanation
"#{current.item} has a {{P|1365}} of #{predecessor}, but follows #{earlier.item} here"
end
|
#problem? ⇒ Boolean
94
95
96
|
# File 'lib/wikidata_position_history/checks.rb', line 94
def problem?
earlier_holder? && !!predecessor && (earlier.item != predecessor)
end
|