Skip to content

Instantly share code, notes, and snippets.

@carlesso
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlesso/c41e7e1d259081354133 to your computer and use it in GitHub Desktop.
Save carlesso/c41e7e1d259081354133 to your computer and use it in GitHub Desktop.
Ruby "somethingIdon'tknowhowtoname"?
class Something
key :foo
def do_foo_check
# I'd like to access key somehow here
put "I'm doing #{what}"
# Expecting I'm doing foo
end
key :foo
def do_bar_check
# Same here
put "I'm doing #{what} now"
# Expecting I'm doing bar now
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment