U
Une Bévue
i wanted to have a Module method having the same name as another one
(from Kernel ?) :
module PlaySound
....
def PlaySound.rand
play a random sound
end
....
end
then i had a stack overflow and found renaming the method to
"PlaySound.random" was OK.
I don' understand because i thougth Modules are designed to avoid names
collision ?
(from Kernel ?) :
module PlaySound
....
def PlaySound.rand
play a random sound
end
....
end
then i had a stack overflow and found renaming the method to
"PlaySound.random" was OK.
I don' understand because i thougth Modules are designed to avoid names
collision ?