KLAZ = Class.new do def mtd puts 'test' endendclass KLAZ def mtd2 mtd endend KLAZ.new.mtd2 #====> test
KLAZ = Class.new do def mtd puts 'test' end end class KLAZ def mtd2 mtd end end KLAZ.new.mtd2 #====> test