Module: Mongo::ConnectionExt
- Defined in:
- lib/mongo/driver/connection.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
writeonly
Sets the attribute logger.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(db_name) ⇒ Object (protected)
5 6 7 |
# File 'lib/mongo/driver/connection.rb', line 5 def method_missing db_name self.db db_name.to_s end |
Instance Attribute Details
#logger=(value) ⇒ Object (writeonly)
Sets the attribute logger
2 3 4 |
# File 'lib/mongo/driver/connection.rb', line 2 def logger=(value) @logger = value end |