3 ms·
Just as a challenge, thought I'd try to make as case like statement as possible... not sure I like it... {'enemy?' => 'attack', 'captive?' => 'rescue'
by Volpe 13y ago
Just as a challenge, thought I'd try to make as case like statement as possible... not sure I like it...
{'enemy?' => 'attack',
'captive?' => 'rescue'
}.each { |test, response| self.send(response) and break if warrior.feel.send(test) }