Class: 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.
139 140 141 |
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 139 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
143 144 145 |
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 143 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.
137 138 139 |
# File 'lib/cucumber/formatter/legacy_api/adapter.rb', line 137 def result @result end |