Computer Science Canada Random Ruby Ridiculousness |
Author: | wtd [ Sun Jan 24, 2010 2:47 am ] | ||
Post subject: | Random Ruby Ridiculousness | ||
|
Author: | wtd [ Sun Jan 24, 2010 2:53 am ] | ||
Post subject: | RE:Random Ruby Ridiculousness | ||
|
Author: | Insectoid [ Sun Jan 24, 2010 10:44 am ] | ||
Post subject: | RE:Random Ruby Ridiculousness | ||
I dunno what modules do, but I gather that you've made classes initialized by methods in a module which return boolean values from an expression. What I don't understand is what
|
Author: | Tony [ Sun Jan 24, 2010 11:01 pm ] | ||||||
Post subject: | RE:Random Ruby Ridiculousness | ||||||
Any and All constructors _do_ get parameters, in a way that "baz" is a parameter in an above example. That is, parenthesis are not strictly necessary. Recall that + is a method on Fixnum class.
But we don't need to explicitly specify .method or (argument) |
Author: | wtd [ Sun Jan 24, 2010 11:37 pm ] | ||
Post subject: | RE:Random Ruby Ridiculousness | ||
Minor clean-up:
|