module RuboCop::Cop::Style::MutableConstant::ShareableConstantValue
def magic_comment_in_scope(node)
Identifies the most recent magic comment with valid shareable constant values
def magic_comment_in_scope(node) processed_source_till_node(node).reverse_each.find do |line| MagicComment.parse(line).valid_shareable_constant_value? end end