Methods

Class/Module Index [+]

Quicksearch

Mongoid::Extensions::Regexp::ClassMethods

Public Instance Methods

mongoize(object) click to toggle source

Turn the object from the ruby type we deal with to a Mongo friendly type.

@example Mongoize the object.

Regexp.mongoize(/^[abc]/)

@param [ Regexp, String ] object The object to mongoize.

@return [ Regexp ] The object mongoized.

@since 3.0.0

# File lib/mongoid/extensions/regexp.rb, line 18
def mongoize(object)
  ::Regexp.new(object)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.