This really just happened to me. Really. I know I produced some April Fools jokes yesterday, but that was yesterday. This is real.
I created this Ruby script in TextMate:
s = "wackamole" puts s
I ran it, and the RubyMate output window displayed:
woe
Weird, eh? And it is part of a longer story; the string "wag wag" was being displayed as "w w", and the string "ruff ruff" was being displayed as empty. (Never mind why I was testing those strings.)
I quit TextMate, restarted my computer, and everything is back to normal. But would anyone like to suggest a cause for what happened? Cosmic rays? Belated April Fools day easter-egg-type joke?? The conficker virus??? Has anyone else ever seen anything like this? m.
PS The problem was presumably with TextMate, not with ruby, because using the Terminal to run the same script (as a saved text file) using the "ruby" command worked just fine.