All pastes #930620 Raw Edit

Something

public ruby v1 · immutable
·published 2008-03-06 19:02 UTC
rendered paste body
def instanciator(class_or_string)  if class_or_string.instance_of?(String)    return Kernel.get_const(class_or_string).new  else    return class_or_string.newendklass = "MyClass"o = instanciator(klass)# same asklass = MyClasso = instanciator(klass)