Module Origin::Extensions::String::ClassMethods
In: lib/origin/extensions/string.rb

Methods

Public Instance methods

Get the value as a expression.

@example Get the value as an expression.

  String.__expr_part__("field", value)

@param [ String, Symbol ] key The field key. @param [ Object ] value The value of the criteria. @param [ true, false ] negating If the selection should be negated.

@return [ Hash ] The selection.

@since 2.0.0

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

@example Evolve the string

  String.evolve(1)

@param [ Object ] object The object to convert.

@return [ String ] The value as a string.

@since 1.0.0

[Validate]