Class: Slimy::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/slimy/config.rb

Overview

Class for configration of Slimy tooling

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



6
7
8
# File 'lib/slimy/config.rb', line 6

def initialize
  @reporter = nil
end

Instance Attribute Details

#reporterObject

Returns the value of attribute reporter.



10
11
12
# File 'lib/slimy/config.rb', line 10

def reporter
  @reporter
end

Class Method Details

.defaultObject



12
13
14
# File 'lib/slimy/config.rb', line 12

def self.default
  @@default ||= Configuration.new
end

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



16
17
18
# File 'lib/slimy/config.rb', line 16

def configure
  yield(self) if block_given?
end