class RuboCop::Cop::RSpec::EmptyLineAfterFinalLet

it { does_something }
let(:something) { other }
let(:foo) { bar }
# good
it { does_something }
let(:something) { other }
let(:foo) { bar }
# bad
@example
Checks if there is an empty line after the last let block.

def on_block(node)

def on_block(node)
  return unless example_group_with_body?(node)
  latest_let = node.body.child_nodes.select { |child| let?(child) }.last
  return if latest_let.nil?
  return if last_child?(latest_let)
  missing_separating_line(latest_let) do |location|
    add_offense(latest_let, location: location)
  end
end