R
ruby talk
How can i over ride [] in a class?
i have a binary class where it is stored in a string and i want to
beable to do this
a=Binary.new("00101001")
p a[0] >> 1
i can provide what i have so far if you would like.
thank you for your time.
Becker
i have a binary class where it is stored in a string and i want to
beable to do this
a=Binary.new("00101001")
p a[0] >> 1
i can provide what i have so far if you would like.
thank you for your time.
Becker