Class: Symbol

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

Instance Method Summary collapse

Instance Method Details

#to_bsonObject



9
10
11
# File 'lib/jmongo/mongo/ruby_ext.rb', line 9

def to_bson
  BSON::Symbol.new(self.to_s)
end