Skip to content

Instantly share code, notes, and snippets.

@rubychan
Created February 22, 2011 02:09
Show Gist options
  • Save rubychan/838097 to your computer and use it in GitHub Desktop.
Save rubychan/838097 to your computer and use it in GitHub Desktop.
ruby -rstrscan -e 's = StringScanner.new(a = ""); a << "test"; p s.scan(/test/)'
"test"
rbx -rstrscan -e 's = StringScanner.new(a = ""); a << "test"; p s.scan(/test/)'
nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment