Class: Cucumber::Formatter::LegacyApi::Adapter::TestCaseSource::Collector

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCollector

Returns a new instance of Collector



166
167
168
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 166

def initialize
  @result = CaseSource.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, node, _test_case_result, *_args) ⇒ Object



170
171
172
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 170

def method_missing(name, node, _test_case_result, *_args)
  result.send "#{name}=", node
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result



164
165
166
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 164

def result
  @result
end