Created
November 30, 2012 12:11
-
-
Save timmow/4175423 to your computer and use it in GitHub Desktop.
inheritance
This file contains hidden or 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 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