Hi my friends,

I am thinking of how can I reduce Ruby runtime error. Not like
languages such as C or Pascal, Ruby is typeless. This is a good thing,
especially in design time. However, I found that my application is not
stable due to this feature.

For example, a routine is expecting a string, and this string turned out
to be nil at runtime, an error occurred. In Delphi, for example, it is
impossible that a string becomes a nil, it will be an empty string.

How can I better utilize Ruby's typeless feature yet avoid such anonying
runtime problem?

Thanks!
-- 
Xiangrong Fang <xrfang / hotmail.com>