Class: CIAT::Feedback::Composite
- Inherits:
-
Object
- Object
- CIAT::Feedback::Composite
- Defined in:
- lib/ciat/feedback/composite.rb
Instance Method Summary collapse
-
#initialize(*feedbacks) ⇒ Composite
constructor
Pass in instances of the feedbacks as arguments to the constructor.
- #post_tests(suite) ⇒ Object
- #pre_tests(suite) ⇒ Object
- #processor_result(processor) ⇒ Object
Constructor Details
#initialize(*feedbacks) ⇒ Composite
Pass in instances of the feedbacks as arguments to the constructor.
5 6 7 |
# File 'lib/ciat/feedback/composite.rb', line 5 def initialize(*feedbacks) @feedbacks = feedbacks end |
Instance Method Details
#post_tests(suite) ⇒ Object
12 13 14 |
# File 'lib/ciat/feedback/composite.rb', line 12 def post_tests(suite) @feedbacks.each { |feedback| feedback.post_tests(suite) } end |
#pre_tests(suite) ⇒ Object
9 10 11 |
# File 'lib/ciat/feedback/composite.rb', line 9 def pre_tests(suite) @feedbacks.each { |feedback| feedback.pre_tests(suite) } end |
#processor_result(processor) ⇒ Object
16 17 18 |
# File 'lib/ciat/feedback/composite.rb', line 16 def processor_result(processor) @feedbacks.each { |feedback| feedback.processor_result(processor) } end |