class RuboCop::Cop::Style::RedundantFetchBlock
def build_good_method(send, body)
def build_good_method(send, body) key = send.children[2].source default_value = body ? body.source : 'nil' "fetch(#{key}, #{default_value})" end
def build_good_method(send, body) key = send.children[2].source default_value = body ? body.source : 'nil' "fetch(#{key}, #{default_value})" end