Class: MongoMapper::Migration::Logger
- Inherits:
-
Object
- Object
- MongoMapper::Migration::Logger
- Defined in:
- lib/mongo_mapper_ext/mongo_mapper/migration.rb
Instance Attribute Summary collapse
-
#enabled ⇒ Object
Returns the value of attribute enabled.
Instance Method Summary collapse
- #info(message) ⇒ Object
-
#initialize(enabled = true) ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize(enabled = true) ⇒ Logger
Returns a new instance of Logger.
25 26 27 |
# File 'lib/mongo_mapper_ext/mongo_mapper/migration.rb', line 25 def initialize enabled = true self.enabled = enabled end |
Instance Attribute Details
#enabled ⇒ Object
Returns the value of attribute enabled.
23 24 25 |
# File 'lib/mongo_mapper_ext/mongo_mapper/migration.rb', line 23 def enabled @enabled end |
Instance Method Details
#info(message) ⇒ Object
29 30 31 |
# File 'lib/mongo_mapper_ext/mongo_mapper/migration.rb', line 29 def info puts if enabled end |