Skip to content

Instantly share code, notes, and snippets.

@rodjek
Created July 6, 2012 00:22
Show Gist options
  • Save rodjek/3057282 to your computer and use it in GitHub Desktop.
Save rodjek/3057282 to your computer and use it in GitHub Desktop.
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