Methods

Class/Module Index [+]

Quicksearch

Moped::BSON::Extensions::Regexp

Public Instance Methods

__bson_dump__(io, key) click to toggle source
# File lib/moped/bson/extensions/regexp.rb, line 25
def __bson_dump__(io, key)
  io << Types::REGEX
  io << key.to_bson_cstring

  io << source.to_bson_cstring

  io << 'i'  if (options & ::Regexp::IGNORECASE) != 0
  io << 'ms' if (options & ::Regexp::MULTILINE) != 0
  io << 'x'  if (options & ::Regexp::EXTENDED) != 0
  io << NULL_BYTE
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.