Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

array returned by warrior.look is string? #48

Open
meesterdude opened this issue Jan 21, 2012 · 0 comments
Open

array returned by warrior.look is string? #48

meesterdude opened this issue Jan 21, 2012 · 0 comments

Comments

@meesterdude
Copy link

I'm not sure if this is an issue or a quirk or nothing. The supporting code looks right as far as i can tell.

warrior.look.to_s returns something like [nothing, Wizard, nothing] while ["nothing", "nothing", "nothing"] .to_s returns ["nothing", "nothing", "nothing"]

was trying to do array comparison with 'eql?' and kept getting false returns. though what I don't understand is warrior.look[1] returns the correct item.

I had to create my array like "[nothing, Wizard, nothing]" in order to compare.

So, from what i can tell, isn't the array returned by warrior.look invalid in some way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant