Created
July 29, 2009 11:43
-
-
Save raggi/158045 to your computer and use it in GitHub Desktop.
Should this work? Do you know what it's doing?
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
# The Question: Should this work? | |
# The Bonus Question: Does it, and in what capacity? | |
def parse_message(str) | |
last = nil | |
@parser ||= Parser.new { |message| last = message } | |
@parser << str | |
last | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment