Ruby (programming language): Difference between revisions

Content deleted Content added
m reformat code example, it was too wide
New version of Ruby is 1.8.0
Line 23:
Ruby is purely object-oriented: every bit of data is an object, including types that are designated "primitive" in impure languages. Every function is a method. This is similar to Smalltalk but unlike [[Java programming language|Java]] and Python. Every named value (variable name) in a Ruby program designates a reference to an object, not the object itself.
 
The language was created by [[Yukihiro Matsumoto]] (a.k.a. "Matz") on February 24, [[1993]]. The current stable version is 1.6.8.0. Note that the name is not an
[[acronym]]--it is actually a [[pun]] on [[Perl]]. According to the author, he
designed Ruby to follow the ''[[principle of least surprise]]'' (POLS), meaning that the