class RuboCop::Cop::Layout::SpaceAroundBlockParameters

def check_no_space_style_inside_pipes(args, opening_pipe, closing_pipe)

def check_no_space_style_inside_pipes(args, opening_pipe, closing_pipe)
  first = args.first.source_range
  last = args.last.source_range
  check_no_space(opening_pipe.end_pos, first.begin_pos,
                 'Space before first')
  check_no_space(last_end_pos_inside_pipes(last.end_pos),
                 closing_pipe.begin_pos, 'Space after last')
end