Class: ContributorsStats::Base
- Inherits:
-
Object
- Object
- ContributorsStats::Base
- Defined in:
- lib/contributors_stats/base.rb
Overview
Basis for ContributorsStats, includes logging and plugins support
Direct Known Subclasses
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
7 8 9 10 11 |
# File 'lib/contributors_stats/base.rb', line 7 def initialize( = {}) @logger = $stdout @logger = .delete(:logger) if [:logger] = end |
Instance Attribute Details
#logger ⇒ Object
Returns the value of attribute logger.
5 6 7 |
# File 'lib/contributors_stats/base.rb', line 5 def logger @logger end |
#options ⇒ Object
Returns the value of attribute options.
5 6 7 |
# File 'lib/contributors_stats/base.rb', line 5 def end |