Sha256: 256f07c25b3a9bb1c7759071c8dfa7908f9710b8540f4daa082ecaba32ed1ef1
Contents?: true
Size: 623 Bytes
Versions: 37
Compression:
Stored size: 623 Bytes
Contents
# encoding: utf-8 module Mongoid module Extensions module Regexp module ClassMethods # 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 def mongoize(object) ::Regexp.new(object) end end end end end ::Regexp.__send__(:extend, Mongoid::Extensions::Regexp::ClassMethods)
Version data entries
37 entries across 37 versions & 5 rubygems