SystemStackError

this is the error I get:
SystemStackError#greybox_search
stack level too deep
this is the class I have defined, where the error is being indicated:
def videos(*criteria)
videos[‘videos’][‘video’].collect { |video| Video.new(video[‘id’]) }
end

any help guys…thanks,

MSN id: [email protected]

On Thursday 13 July 2006 16:58, Mikki W wrote:

this is the error I get:
SystemStackError#greybox_search
stack level too deep
this is the class I have defined, where the error is being indicated:
def videos(*criteria)
videos[‘videos’][‘video’].collect { |video| Video.new(video[‘id’])
} end

So you have a method calling itself, calling itself, calling itself,
calling itself, calling itself, calling itself, calling itself, calling
itself, calling itself, calling itself, calling itself, calling itself,
calling itself, calling itself, calling itself, calling itself, calling
itself, calling itself, calling itself, calling itself, calling itself,
calling itself, calling itself, calling itself, calling itself, calling
itself, [remainder snipped]

In other words: infinite recursion :slight_smile: