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: store.rb
    path of file: ./repos/hyperstack/ruby/hyper-store/lib/hyperstack/legacy
    
    the code of the file until where you have to start completion: module Hyperstack
  module Legacy
    module Store
      class InvalidOptionError < StandardError; end
      class InvalidOperationError < StandardError; end
      class << self
        def included(base)
          base.include(Hyperstack::Internal::Store::InstanceMethods)
          base.extend(Hyperstack::Internal::Store::ClassMethods)
          base.extend(Hyperstack::Internal::Store::DispatchReceiver)
    
        def included(base)
          base.include(Hyperstack::Internal::Store::InstanceMethods)
          base.extend(Hyperstack::Internal::Store::ClassMethods)
          base.extend(Hyperstack::Internal::Store::DispatchReceiver)

          base.singleton_class.define_singleton_method(:__state_wrapper) do
            @__state_wrapper ||= Class.new(Hyperstack::Internal::Store::StateWrapper)
          end

          base.singleton_class.define_singleton_method(:state) do |*args, &block|
            __state_wrapper.define_state_methods(base, *args, &block)
          end
        end