Class: Cucumber::Formatter::LegacyApi::Adapter::AfterHookPrinter

Inherits:
Object
  • Object
show all
Includes:
PrintsAfterHooks
Defined in:
lib/cucumber/formatter/legacy_api/adapter.rb

Overview

 Basic printer used by default

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from PrintsAfterHooks

#after_hook, #after_hook_results

Constructor Details

#initialize(formatter) ⇒ AfterHookPrinter

Returns a new instance of AfterHookPrinter



451
452
453
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 451

def initialize(formatter)
  @formatter = formatter
end

Instance Attribute Details

#formatterObject (readonly)

Returns the value of attribute formatter



449
450
451
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 449

def formatter
  @formatter
end

Instance Method Details

#afterObject



457
458
459
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 457

def after
  after_hook_results.accept(formatter)
end