Thursday 15 December 2011

Ruby Basic "Variables"

Ruby is a loosely typed language means if we want to declare any variable of different datatype we don't need to write like other language like in Java here we can directly assign value to a variable and it belong to that datatype class which kind of value its have example :-

a = 5        # "a" type as Fixnum

a = "text"   # "a" is re-typed as String