Module: Mongo::Operation::PolymorphicResult Private

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Shared behavior of instantiating a result class matching the operation class.

This module must be included after Executable module because result_class is defined in both.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



33
34
35
# File 'lib/mongo/operation/shared/polymorphic_result.rb', line 33

def self.included(base)
  base.extend ClassMethods
end