清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
module Kernel def define_class(name, ancestor = Object) Object.const_set(name, Class.new(ancestor)) Object.const_get(name).class_eval(&Proc.new) if block_given? Object.const_get(name) # return defined class always end end