Module: Mongo::Operation::PolymorphicLookup Private
Do not use. This module is for internal use only.
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
|
Included In:
Aggregate,
Aggregate::OpMsg,
CollectionsInfo,
Command,
Count,
Create,
CreateIndex,
CreateSearchIndexes,
CreateUser,
Delete::OpMsg,
Distinct,
Drop,
DropDatabase,
DropIndex,
DropSearchIndex,
Explain,
Explain::OpMsg,
Find,
Find::OpMsg,
GetMore,
GetMore::OpMsg,
Indexes,
Indexes::OpMsg,
Insert::OpMsg,
KillCursors,
ListCollections,
ListCollections::OpMsg,
MapReduce,
MapReduce::OpMsg,
OpMsgExecutable,
ParallelScan,
ParallelScan::OpMsg,
PolymorphicResult,
RemoveUser,
Update::OpMsg,
UpdateSearchIndex,
UpdateUser,
UsersInfo,
UsersInfo::OpMsg,
WriteCommand
| |
| Defined in: | lib/mongo/operation/shared/polymorphic_lookup.rb |
Overview
Shared behavior of looking up a class based on the name of the receiver’s class.
Instance Method Summary
- #polymorphic_class(base, name) private Internal use only
Instance Method Details
#polymorphic_class(base, name) (private)
[ GitHub ]# File 'lib/mongo/operation/shared/polymorphic_lookup.rb', line 28
def polymorphic_class(base, name) bits = (base + "::#{name}").split('::') bits.reduce(Object) do |cls, name| cls.const_get(name, false) end end