Skip to content

Instantly share code, notes, and snippets.

@timmow
Created November 30, 2012 12:11
Show Gist options
  • Select an option

  • Save timmow/4175423 to your computer and use it in GitHub Desktop.

Select an option

Save timmow/4175423 to your computer and use it in GitHub Desktop.
inheritance
class test ($test=bob) inherits parent {
notify{$test:}
}
class child ($test=bob) inherits parent {
notify{$test:}
}
class parent($test=bob) {
# do something with $test as passed through to the paramaterized class, rather than having to do
# in all classes that inehrit from this
notify{"blah${test}":}
}
class {test:
test => vic
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment