On Fri, Aug 23, 2002 at 09:16:29PM +0900, Eugene Scripnik wrote:
> D>     class Hash
> D>       def method_missing(*args)
> D>         self[args[0].to_s]
> D>       end
> D>     end
> You can easily misspell method name (man.sername) with method_missing
> and will not notice this. 

class Hash
  def method_missing(id, *args, &block)
    if has_key?(id.to_s)
      self(id.to_s)
    else
      super
    end
  end
end


Massimiliano