Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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) }


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: