Last active
August 29, 2015 14:14
-
-
Save carlesso/c41e7e1d259081354133 to your computer and use it in GitHub Desktop.
Ruby "somethingIdon'tknowhowtoname"?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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