Monthly Archives: April 2014

A Ruby Oddity

I discovered some odd behaviour in Ruby the other day. If I have the following code declaring some variables irb(main):002:0> a=1, irb(main):003:0* b=1 => [1, 1] This doesn’t result in ‘a’ having the value 1. Instead it is an array. … Continue reading

Posted in Uncategorized | Leave a comment