Class: CucumberCharacteristics::Formatter

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber_characteristics/formatter.rb

Instance Method Summary collapse

Constructor Details

#initialize(runtime, io, options) ⇒ Formatter

Returns a new instance of Formatter.



3
4
5
6
7
8
# File 'lib/cucumber_characteristics/formatter.rb', line 3

def initialize(runtime, io, options)
  @runtime = runtime
  @io = io
  @options = options
  @features = {}
end

Instance Method Details

#after_features(features) ⇒ Object



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

def after_features(features)
  profile = ProfileData.new(@runtime, features)
  Exporter.new(profile).export
end