From: Eric Christopherson Date: 2012-04-30T11:33:57+09:00 Subject: Re: Wrappng up my Text Game! Need Help! On Sun, Apr 29, 2012 at 9:07 PM, Jared H. wrote: [...] > https://gist.github.com/2554879 [...] > undefined method 'reincarnation' for Map:Class > GameBuild.rb:15:in 'blcok (2 levels) in
' > GameBuild.rb 13:in 'call' > GameBuild.rb 13:in 'stack' > GameBuild.rb:13 'block in
' > (eval):1:in 'instance_eval' > (eval)1:in 'block in
' > GameBuild.rb:1:in 'call' > GameBuild.rb"1in 'app' > GameBuild.rb:1in '
' > /Applications/Shoes.app/Contents/MacOS/lib/shoes.rb:435:in 'eval' > /Applications/Shoes.app/Contents/MacOS/lib/shoes.rb:435.in 'visit' > /Applications/Shoes.app/Contents/MacOS/lib/shoes.rb:124:in > 'show_selector' > (eval):1:in '
" reincarnation is an instance method of Map, not a class method, so you need to either make it a class method (by defining it with `def self.reincarnation ...`), or call it with a Map instance as receiver.