Class: Cucumber::Formatter::LegacyApi::Ast::HookResultCollection

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

Instance Method Summary collapse

Constructor Details

#initializeHookResultCollection

Returns a new instance of HookResultCollection


36
37
38
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 36

def initialize
  @children = []
end

Instance Method Details

#<<(child) ⇒ Object


52
53
54
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 52

def <<(child)
  @children << child
end

#accept(formatter) ⇒ Object


40
41
42
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 40

def accept(formatter)
  @children.each { |child| child.accept(formatter) }
end

#describe_exception_to(formatter) ⇒ Object


48
49
50
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 48

def describe_exception_to(formatter)
  @children.each { |child| child.describe_exception_to(formatter) }
end

#send_output_to(formatter) ⇒ Object


44
45
46
# File 'lib/cucumber/formatter/legacy_api/ast.rb', line 44

def send_output_to(formatter)
  @children.each { |child| child.send_output_to(formatter) }
end