flatiron/resourceful — Issue #17: Sample code does not work
Author: pvencill
Created: 2011-11-15 14:59:47+00:00
State: open

When I follow (or copy/paste) the example code from the readme file, I get an error that the 'belly' of the wolf is undefined:

> wolf.feed('squirrel');
TypeError: Cannot call method 'push' of undefined
at Factory.feed ([object Context]:2:12)
at [object Context]:1:6
at Interface. (repl.js:171:22)
at Interface.emit (events.js:64:17)
at Interface._onLine (readline.js:153:10)
at Interface._line (readline.js:408:8)
at Interface._ttyWrite (readline.js:585:14)
at ReadStream. (readline.js:73:12)
at ReadStream.emit (events.js:81:20)
at ReadStream._emitKey (tty_posix.js:307:10)

Is there a line missing in the example code?