module RuboCop::Cop::Parentheses
Common functionality for handling parentheses.
Private Instance Methods
Source
# File lib/rubocop/cop/mixin/parentheses.rb, line 9 def parens_required?(node) range = node.source_range source = range.source_buffer.source /[a-z]/.match?(source[range.begin_pos - 1]) || /[a-z]/.match?(source[range.end_pos]) end