Class: Cucumber::Formatter::LegacyApi::Adapter::TestStepSource::Collector
- Inherits:
-
Object
- Object
- Cucumber::Formatter::LegacyApi::Adapter::TestStepSource::Collector
- Defined in:
- lib/cucumber/formatter/legacy_api/adapter.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize ⇒ Collector
constructor
A new instance of Collector.
- #method_missing(name, node, step_result, *_args) ⇒ Object
Constructor Details
#initialize ⇒ Collector
Returns a new instance of Collector.
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
#result ⇒ Object (readonly)
Returns the value of attribute result.
188 189 190 |
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 188 def result @result end |