Class/Module Index [+]

Quicksearch

Moped::BSON::Extensions::Symbol

Public Instance Methods

__bson_dump__(io, key) click to toggle source
# File lib/moped/bson/extensions/symbol.rb, line 7
def __bson_dump__(io, key)
  io << Types::SYMBOL
  io << key.to_bson_cstring
  data = to_utf8_binary
  io << [ data.bytesize + 1 ].pack(INT32_PACK)
  io << data
  io << NULL_BYTE
end
to_bson_cstring() click to toggle source
# File lib/moped/bson/extensions/symbol.rb, line 16
def to_bson_cstring
  to_s.to_bson_cstring
end
to_utf8_binary() click to toggle source
# File lib/moped/bson/extensions/symbol.rb, line 20
def to_utf8_binary
  to_s.to_utf8_binary
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.