Skip to content

Instantly share code, notes, and snippets.

@krekoten
Created May 7, 2013 18:59
Show Gist options
  • Select an option

  • Save krekoten/5535165 to your computer and use it in GitHub Desktop.

Select an option

Save krekoten/5535165 to your computer and use it in GitHub Desktop.
singleton of immediate values
$ ruby -e "5.instance_exec { p self }"
5
$ bin/topaz_untranslated.py -e "5.instance_exec { p self }"
-e:1:in `instance_exec': can't define singleton (TypeError)
from -e:1:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment