新手问题 undefined method 这是怎么回事啊???

AmyLv · February 27, 2013 · Last by AmyLv replied at February 27, 2013 · 1505 hits

肯定不行啊,hello2 是 instance_method,在 class 里不能访问啊,要def self.hello2 name2才行

没实例化 Lv_Test01 这个类你哪来的那个方法啊

O(∩_∩)O~,解决了,刚开始学习,谢谢各位罗

You need to Sign in before reply, if you don't have an account, please Sign up first.