Class: Cucumber::Formatter::LegacyApi::Adapter::TestCaseSource::Collector
- Inherits:
-
Object
- Object
- Cucumber::Formatter::LegacyApi::Adapter::TestCaseSource::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, _test_case_result, *_args) ⇒ Object
Constructor Details
#initialize ⇒ Collector
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
#result ⇒ Object (readonly)
Returns the value of attribute result.
164 165 166 |
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 164 def result @result end |