Skip to content

Instantly share code, notes, and snippets.

@bodepd
Created December 9, 2010 14:24
Show Gist options
  • Save bodepd/734750 to your computer and use it in GitHub Desktop.
Save bodepd/734750 to your computer and use it in GitHub Desktop.
stages follow the rules of dynamic scoping.. hmm..
stage{'before':}->Stage['main']
include f
class f {
# include b
notify{'after':}
}
class b {
notify{a:}
notify{e:}
}
class a {
include b
notify{b:}
notify{c:}
}
class { 'a':
stage => before,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment