Sha256: 23e187a791581b58955a99f79c7f396dea7167c67a0b17d80e00e76b917ab68f
Contents?: true
Size: 383 Bytes
Versions: 6844
Compression:
Stored size: 383 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop # Common functionality for handling parentheses. module Parentheses private def parens_required?(node) range = node.source_range source = range.source_buffer.source source[range.begin_pos - 1] =~ /[a-z]/ || source[range.end_pos] =~ /[a-z]/ end end end end
Version data entries
6,844 entries across 6,819 versions & 29 rubygems