Class: Cucumber::Formatter::LegacyApi::Adapter::TestStepSource::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



190
191
192
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 190

def initialize
  @result = StepSource.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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



194
195
196
197
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 194

def method_missing(name, node, step_result, *_args)
  result.send "#{name}=", node
  result.send "#{name}_result=", LegacyResultBuilder.new(step_result)
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result



188
189
190
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 188

def result
  @result
end