Hi,
Anybody know why index does not evaluate variables??
eg This does not work…
x = [1,2,3,4,5]
test = “2”
puts x.index(test)
Thanks,
Dave C., MD
Hi,
Anybody know why index does not evaluate variables??
eg This does not work…
x = [1,2,3,4,5]
test = “2”
puts x.index(test)
Thanks,
Dave C., MD
Got it. String vs integer…
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs