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



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

def after
  formatter.after_steps(steps)
  self
end

#beforeObject



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

def before
  formatter.before_steps(nil)
  self
end

#step_invocation(step_invocation) ⇒ Object



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

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