Created
August 13, 2014 03:54
-
-
Save claudijd/ca73faab83c6d5b8c022 to your computer and use it in GitHub Desktop.
Neo's getting some new skills, yo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> brain = Brain.new() | |
=> #<Brain:0x00000102802f98 @skills=["hide", "run"]> | |
>> brain.what_to_do? | |
=> "run" | |
>> require 'monkey_patched_brain' | |
=> true | |
>> brain.what_to_do? | |
=> "run" | |
>> brain.get_new_skills | |
=> ["round house kick", "karate chop"] | |
>> brain.what_to_do? | |
=> "round house kick" | |
>> brain.what_to_do? | |
=> "karate chop" | |
>> brain.to_s | |
=> "#<Brain:0x00000102802f98>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment