I want to extend the number class to have instance functions such as odd and even so I can do something like this:
odd
even
2.odd() => false
I'd like to point out that that is already available in the numbers class.
Just use the boolean methods, odd? and even?
2.odd? => false 2.even? => true
Hope this helps.
No need to create a new class, it already exists in the numbers class.