Hello all.

I have code:

def create_default(type)
  type.new
end

But with, for example, Float, it suddenly said:

create_default(Float) #<=== undefined method `new' for Float:Class
(NoMethodError)

Hmmm? How can I uniformly obtain default value for given class?

Victor.