|
|
Ruby has it's moments. Someone has to have done this before, but it was a good
way to kill five minutes. The wording was designed to incorporate the string,
the conditional, commas, and, or, the boolean, ()s, and the exclamation points.
class HelloWorld
def self.method_missing(id, *args)
"#{id.to_s} #{args[0]}"
end
def self.run
#Note: the following is not commented out.
I can't let this go by - consider the full impact upon our childrens'
lives! If you had gone your whole life without seeing it would you
have believed it to be true? All of this code parses, compiles and
executes with the ruby interpreter without complaint, warning or
failure! When you can invoke this: (brace yourself)
puts hello world
all bets are off!
end
end
HelloWorld.run
|