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.



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

def initialize
  @children = []
end

Instance Method Details

#<<(child) ⇒ Object



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

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

#accept(formatter) ⇒ Object



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

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

#describe_exception_to(formatter) ⇒ Object



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

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

#send_output_to(formatter) ⇒ Object



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

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