class RuboCop::Cop::Layout::EmptyLinesAroundExceptionHandlingKeywords
def check_body(node)
def check_body(node) locations = keyword_locations(node) locations.each do |loc| line = loc.line keyword = loc.source # below the keyword check_line(style, line, message('after', keyword), &:empty?) # above the keyword check_line(style, line - 2, message('before', keyword), &:empty?) end end