Say I'm having two strings "Cat" and "Mouse"
I put them in an array
arr = ["Cat","Mouse"]
And I have two variables say hero and villain
Now the variable hero
will be assigned dynamically which will be either "Cat" or "Mouse"
So what will be the best way to assign villain
variable by eliminating hero
value from arr
Ex
hero = # Either "Cat" or "Mouse"
villain = # The NOT HERO VALUE in arr
FYI: I know it can be done using a function or some manual tricks. But I just wonder if there is any Ruby way of doing this.