Method: Mongo::Fixture#initialize
- Defined in:
- lib/mongo-fixture.rb
#initialize(fixture = nil, connection = nil, option_push = true) ⇒ Fixture
Initializes the fixture handler Accepts optionally a symbol as a reference to the fixture and a Mongo::DB connection
30 31 32 33 34 35 36 |
# File 'lib/mongo-fixture.rb', line 30 def initialize fixture = nil, connection = nil, option_push = true load fixture if fixture @connection = connection if connection @inserter = Inserter.new self push if fixture && connection && option_push end |