Difference between revisions of "Render Part D Assignment"
Jump to navigation
Jump to search
(Created page with "In this studio we will evolve our code from Render_Part_C_Assignment to leverage mixins. File:Render_part_d_class_hierarchy.svg Continue editing files in the render/...") |
|||
Line 4: | Line 4: | ||
Continue editing files in the render/assignment directory. | Continue editing files in the render/assignment directory. | ||
+ | |||
+ | =Code to Implement= | ||
+ | ==Composite== | ||
+ | module Composite should define methods push_component and each_component as well as include the [https://ruby-doc.org/core-2.6.3/Enumerable.html Enumerable] module. | ||
+ | ===push_component=== | ||
+ | ===each_component=== | ||
+ | |||
+ | ==CompositeTransform== | ||
+ | include Composite and clean up existing code. | ||
+ | |||
+ | ==Scene== | ||
+ | include Composite and clean up existing code. |
Revision as of 04:28, 17 July 2019
In this studio we will evolve our code from Render_Part_C_Assignment to leverage mixins.
Continue editing files in the render/assignment directory.
Contents
Code to Implement
Composite
module Composite should define methods push_component and each_component as well as include the Enumerable module.
push_component
each_component
CompositeTransform
include Composite and clean up existing code.
Scene
include Composite and clean up existing code.