I'm trying to create a Ruby Hash of objects, where the keys are the object @name member:
# m is an object with an @name instance variable (a string)
myHash = {}
myHash[m.name] = m
It's giving this error:
#<TypeError: can't convert String into Integer>
Anyone know why? I'm sure that m.name is a valid string...