class RuboCop::Cop::Style::TrailingCommaInBlockArgs
def argument_tokens(node)
def argument_tokens(node) tokens = processed_source.tokens_within(node) pipes = tokens.select { |token| token.type == :tPIPE } begin_pos, end_pos = pipes.map { |pipe| tokens.index(pipe) } tokens[begin_pos + 1..end_pos - 1] end