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

From CSE425S Wiki
Jump to navigation Jump to search
Line 3: Line 3:
 
: [https://ruby-doc.org/core-3.1.1/Enumerable.html Enumerable]
 
: [https://ruby-doc.org/core-3.1.1/Enumerable.html Enumerable]
  
=Implementation (If Interested)=
+
=Implementation To Investigate (If Interested)=
 
: [https://github.com/ruby/ruby/blob/master/enum.c enum.c]
 
: [https://github.com/ruby/ruby/blob/master/enum.c enum.c]
  

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 To Investigate (If Interested)

enum.c

Code To Modify

Add

include Enumerable

to your PowersOfTwoRange class definition.

Client

Test