Class: Cucumber::Formatter::LegacyApi::Adapter::StepsPrinter

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

Instance Method Summary collapse

Instance Method Details

#afterObject



572
573
574
575
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 572

def after
  formatter.after_steps(steps)
  self
end

#beforeObject



561
562
563
564
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 561

def before
  formatter.before_steps(nil)
  self
end

#step_invocation(step_invocation) ⇒ Object



566
567
568
569
570
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 566

def step_invocation(step_invocation)
  steps << step_invocation
  step_invocation.accept(formatter)
  self
end