Skip to content

Instantly share code, notes, and snippets.

@colinta
Forked from Ferdev/gist:4716131
Last active December 12, 2015 04:39
Show Gist options
  • Save colinta/4716202 to your computer and use it in GitHub Desktop.
Save colinta/4716202 to your computer and use it in GitHub Desktop.
class Symbol
def ivar
"@#{self}"
end
end
foo.instance_variable_set(:name.ivar, value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment