0

So in Ruby Constants cannot change their value in programs ?

variables declared as Constants in Ruby ..cannot change value ? when I tried in an app from Android store with a code.. I was able to

26th Sep 2017, 4:40 PM
abhinash sivan
2 Antworten
+ 11
https://www.ruby-forum.com/topic/4409251 In ruby, if you try to re-assign a value to a constant, you'll just get a warning, not an error.
26th Sep 2017, 5:01 PM
Hatsy Rei
Hatsy Rei - avatar
0
yes, that's it.
26th Sep 2017, 9:53 PM
Ivan Carlos Anibal
Ivan Carlos Anibal - avatar