Module Origin::Extensions::Symbol::ClassMethods
In: lib/origin/extensions/symbol.rb

Methods

add_key   evolve  

Public Instance methods

Adds a method on symbol as a convenience for the MongoDB operator.

@example Add the $in method.

  Symbol.add_key(:in, "$in")

@param [ Symbol ] name The name of the method. @param [ Symbol ] strategy The name of the merge strategy. @param [ String ] operator The MongoDB operator. @param [ String ] additional The additional MongoDB operator.

@since 1.0.0

Evolves the symbol into a MongoDB friendly value - in this case a symbol.

@example Evolve the symbol

  Symbol.evolve("test")

@param [ Object ] object The object to convert.

@return [ Symbol ] The value as a symbol.

@since 1.0.0

[Validate]