Class: Cucumber::Formatter::LegacyApi::Adapter::ExamplesArrayPrinter

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

Instance Method Summary collapse

Instance Method Details

#afterObject



691
692
693
694
695
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 691

def after
  @child.after if @child
  formatter.after_examples_array
  self
end

#beforeObject



679
680
681
682
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 679

def before
  formatter.before_examples_array(:examples_array)
  self
end

#examples_table(examples_table) ⇒ Object



684
685
686
687
688
689
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 684

def examples_table(examples_table)
  return if examples_table == @current
  @child.after if @child
  @child = ExamplesTablePrinter.new(formatter, configuration, examples_table).before
  @current = examples_table
end