Created
July 6, 2012 00:22
-
-
Save rodjek/3057282 to your computer and use it in GitHub Desktop.
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 foo { | |
notify { 'test': | |
message => $name, # This is still in Class[foo] scope | |
} | |
} | |
class foo { | |
mynotify { 'test': } | |
} | |
define mynotify() { | |
notify { $name: } # This is in a scope local to this instance of mynotify | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment