lib/mongoid/criteria/queryable.rb in mongoid-7.3.5 vs lib/mongoid/criteria/queryable.rb in mongoid-7.4.0

- old
+ new

@@ -1,7 +1,6 @@ # frozen_string_literal: true -# encoding: utf-8 require "mongoid/criteria/queryable/expandable" require "mongoid/criteria/queryable/extensions" require "mongoid/criteria/queryable/key" require "mongoid/criteria/queryable/macroable" @@ -45,12 +44,10 @@ # queryable == criteria # # @param [ Object ] other The object to compare against. # # @return [ true, false ] If the objects are equal. - # - # @since 1.0.0 def ==(other) return false unless other.is_a?(Queryable) selector == other.selector && options == other.options end @@ -61,12 +58,10 @@ # Queryable.new # # @param [ Hash ] aliases The optional field aliases. # @param [ Hash ] serializers The optional field serializers. # @param [ Symbol ] driver The driver being used. - # - # @since 1.0.0 def initialize(aliases = {}, serializers = {}, driver = :mongo) @aliases, @driver, @serializers = aliases, driver.to_sym, serializers @options = Options.new(aliases, serializers) @selector = Selector.new(aliases, serializers) @pipeline = Pipeline.new(aliases) @@ -78,11 +73,9 @@ # # @example Handle copy initialization. # queryable.initialize_copy(criteria) # # @param [ Queryable ] other The original copy. - # - # @since 1.0.0 def initialize_copy(other) @options = other.options.__deep_copy__ @selector = other.selector.__deep_copy__ @pipeline = other.pipeline.__deep_copy__ end