You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: projection.rb
    path of file: ./repos/rails_event_store/ruby_event_store/lib/ruby_event_store
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module RubyEventStore
 
    
    def read_scope(event_store, stream, count, start)
      scope = event_store.read.in_batches(count)
      scope = scope.of_type(handled_events)
      scope = scope.stream(stream) if stream
      scope = scope.from(start) if start
      scope
    end