Skip to content

array returned by warrior.look is string? #48

Open

Description

@meesterdude

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions