Content deleted Content added
Derek Ross (talk | contribs) m sp |
Improve code example, fix version |
||
Line 24:
The language was created by [[Yukihiro Matsumoto]] on February 24, 1993. The
current stable version is 1.6.
[[acronym]]--it is actually a [[pun]] on [[Perl]]. According to the author, he
designed Ruby to follow the ''principle of least surprise'' (POTS), meaning that the
language should be free from the traps and inconsistencies that plague other
languages.
Line 33:
<pre>
# Execute the following block of code 10 times
10.times {
string1 = "Hello world".gsub(" ", ",") # Replace ' ' with ', ' and store in string1
puts string1 # print variable 'string1', followed by a newline
}
</pre>
|