Module: L2meter

Extended by:
L2meter
Included in:
L2meter
Defined in:
lib/l2meter.rb,
lib/l2meter/emitter.rb,
lib/l2meter/version.rb,
lib/l2meter/null_output.rb,
lib/l2meter/configuration.rb

Defined Under Namespace

Classes: Configuration, Emitter, NullOutput

Constant Summary collapse

VERSION =
"0.15.1".freeze

Instance Method Summary collapse

Instance Method Details

#build(configuration: Configuration.new) {|configuration| ... } ⇒ Object

Yields:

  • (configuration)


10
11
12
13
# File 'lib/l2meter.rb', line 10

def build(configuration: Configuration.new)
  yield(configuration) if block_given?
  Emitter.new(configuration: configuration.freeze)
end