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



584
585
586
587
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 584

def after
  formatter.after_steps(steps)
  self
end

#beforeObject



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

def before
  formatter.before_steps(nil)
  self
end

#step_invocation(step_invocation) ⇒ Object



578
579
580
581
582
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 578

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