class RuboCop::Cop::Layout::SingleLineBlockChain

Checks if method calls are chained onto single line blocks. It considers that a line break before the dot improves the readability of the code.

@example

# bad
example.select { |item| item.cond? }.join('-')

# good
example.select { |item| item.cond? }
       .join('-')

# good (not a concern for this cop)
example.select do |item|
  item.cond?
end.join('-')