Class: Slimy::Configuration
- Inherits:
-
Object
- Object
- Slimy::Configuration
- Defined in:
- lib/slimy/config.rb
Overview
Class for configration of Slimy tooling
Instance Attribute Summary collapse
-
#reporter ⇒ Object
Returns the value of attribute reporter.
Class Method Summary collapse
Instance Method Summary collapse
- #configure {|_self| ... } ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 |
# File 'lib/slimy/config.rb', line 6 def initialize @reporter = nil end |
Instance Attribute Details
#reporter ⇒ Object
Returns the value of attribute reporter.
10 11 12 |
# File 'lib/slimy/config.rb', line 10 def reporter @reporter end |
Class Method Details
.default ⇒ Object
12 13 14 |
# File 'lib/slimy/config.rb', line 12 def self.default @@default ||= Configuration.new end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
16 17 18 |
# File 'lib/slimy/config.rb', line 16 def configure yield(self) if block_given? end |