Class: WikidataPositionHistory::Check::WrongSuccessor
Overview
Does the ‘replaced by’ match the next item in the list?
Instance Method Summary
collapse
#explanation, #initialize
Instance Method Details
#headline ⇒ Object
128
129
130
|
# File 'lib/wikidata_position_history/checks.rb', line 128
def headline
'Inconsistent successor'
end
|
#possible_explanation ⇒ Object
132
133
134
|
# File 'lib/wikidata_position_history/checks.rb', line 132
def possible_explanation
"#{current.item} has a {{P|1366}} of #{successor}, but is followed by #{later.item} here"
end
|
#problem? ⇒ Boolean
124
125
126
|
# File 'lib/wikidata_position_history/checks.rb', line 124
def problem?
later_holder? && !!successor && (later.item != successor)
end
|