Module: Pont

Defined in:
lib/pont.rb,
lib/pont/logger.rb,
lib/pont/version.rb,
lib/pont/attribution.rb,
lib/pont/configuration.rb,
lib/pont/prospect_event.rb,
lib/pont/comp_attributes.rb

Defined Under Namespace

Modules: Attribution, ProspectEvent Classes: CompAttributes, Configuration, Error, Logger

Constant Summary collapse

VERSION =
'0.1.4'

Class Method Summary collapse

Class Method Details

.configurationObject

Instantiate the Configuration singleton or return it. Remember that the instance has attribute readers so that we can access the configured values



26
27
28
# File 'lib/pont.rb', line 26

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

This is the configure block definition. The configuration method will return the Configuration singleton, which is then yielded to the configure block. Then it’s just a matter of using the attribute accessors we previously defined

Yields:



35
36
37
# File 'lib/pont.rb', line 35

def configure
  yield(configuration)
end