Shelby kitten decided to eat wool, in a very similar manner.
We thought she was playing with it, but then we realised she was swallowing it. DH grabbed her, and caught the end of the yarn before she swallowed it. He pulled gently. And carried on pulling and pulling.
And we had a huge length of yarn retrieved from her stomach.
I now have to keep my knitting in a zipped bag.