module Mongo::Configure
Constants
- VERSION
Public Class Methods
current()
click to toggle source
# File lib/mongo/configure.rb, line 28 def current @config ||= Config.new 'localhost/database' end
from_database(name)
click to toggle source
# File lib/mongo/configure.rb, line 25 def from_database(name) @config = Config.new URI.new.tap { |uri| uri.database = name } end
from_uri(uri)
click to toggle source
# File lib/mongo/configure.rb, line 22 def from_uri(uri) @config = Config.new URI.parse uri end