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: selects_among_all.rb
    path of file: ./repos/ekylibre/lib/ekylibre/record
    
    the code of the file until where you have to start completion: module Ekylibre
  module Record
    module SelectsAmongAll #:nodoc:
      def self.included(base)
        base.extend(ClassMethods)
      end

      module Cla
    
        def selects_among_all(*columns)
          options = columns.extract_options!

          columns = [:by_default] if columns.empty?
          code  = ''

          scope = table_name.classify.constantize.name # "self.class"
          scope << ".#{options[:subset]}" if options[:subset]
          scope_columns = []
          if s = options[:scope]
            s = [s] if s.is_a?(Symbol)
            unless s.is_a?(Symbol) || s.is_a?(Array)
              raise ArgumentError.new('Scope must be given as a Symbol or an Array of Symbol')
            end