Posts by Wilton Ribeiro • 23 points
3 posts
-
1
votes1
answer23
viewsQ: Why is cutting an array out of range not returning nil?
The ruby documentation says that when trying to "cut" an array using an invalid index it will return nil, so because I always get a number array in the index after the last valid index? array = [0,…
rubyasked Wilton Ribeiro 23 -
0
votes1
answer44
viewsQ: Why isn’t to_s being overwritten?
In Ruby you can override methods, even "default" language classes. I just wanted to know why the code I did below does not overwrite properly. class Oi end class Ola def to_s puts "Olá!" end end oi…
-
0
votes1
answer49
viewsQ: How to detect joystick events from the browser?
Hello, whereas I have a joystick connected and running on my pc; How do I receive events from it through the browser? That’s possible? I can detect keyboard events, only I wish my little game could…