I have the following code:
class BookPrice attr_accessor :price def initialize(price) @price = price end def price_in_cents Integer(price*100 +
One general reason this can happen is if you have some method that calls itself recursively (i.e. calls itself inside itself, which causes an infinite loop).
That's the problem I had that led to the error message.
In your case that's what's happening here:
def price @price = price end