Class: Regexp

Inherits:
Object show all
Defined in:
lib/jmongo/mongo/ruby_ext.rb

Instance Method Summary collapse

Instance Method Details

#to_bsonObject



15
16
17
# File 'lib/jmongo/mongo/ruby_ext.rb', line 15

def to_bson
  Java::JavaUtilRegex::Pattern.compile(source, options * 2)
end