def classFromString(str)
      # Start with Object, and look up the module one path component at a time
      str.split('::').inject(Object) do |mod, class_name|
        mod.const_get(class_name)
      end
    end
def classFromString(str)
      # Start with Object, and look up the module one path component at a time
      str.split('::').inject(Object) do |mod, class_name|
        mod.const_get(class_name)
      end
    end
Get a Ruby class from a normal Ruby class name formatted using "::" separators