Difference between revisions of "Powers Of 2 Range Enumerable Mixin Assignment"

From CSE425S Wiki
Jump to navigation Jump to search
(Created page with "In this studio we will evolve our code from our Powers of 2 exercise to leverage class mixins.")
 
Line 1: Line 1:
In this studio we will evolve our code from our [[Powers_Of_2_Range_Enumerable_Mixin_Assignment|Powers of 2]] exercise to leverage class mixins.
+
In this studio we will evolve our code from our [[Powers_Of_2_Range_Enumerable|Powers of 2]] exercise to leverage class mixins.
 +
=Documentation To Invesigate=
 +
: [https://ruby-doc.org/core-3.1.1/Enumerable.html Enumerable]
 +
 
 +
=Implementation (If Interested)=
 +
: [https://github.com/ruby/ruby/blob/master/enum.c enum.c]
 +
 
 +
=Code To Modify=
 +
Add
 +
 
 +
<nowiki>include Enumerable
 +
</nowiki>
 +
 
 +
to your PowersOfTwoRange class definition.
 +
 
 +
=Client=
 +
 
 +
=Test=

Revision as of 17:11, 11 April 2022

In this studio we will evolve our code from our Powers of 2 exercise to leverage class mixins.

Documentation To Invesigate

Enumerable

Implementation (If Interested)

enum.c

Code To Modify

Add

include Enumerable

to your PowersOfTwoRange class definition.

Client

Test