summaryrefslogtreecommitdiffstats
path: root/test/util/autoload.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@puppetlabs.com>2011-07-05 16:32:03 -0700
committerLuke Kanies <luke@puppetlabs.com>2011-07-15 11:52:41 -0700
commitbdc0f8716ae8ccb2b2657dfab591afe9589d8902 (patch)
tree6f6b25251f0a581c878b833a90e5b3bab0ac5d11 /test/util/autoload.rb
parent9662045bfe551821823b38fe6511e621998aef0b (diff)
downloadpuppet-bdc0f8716ae8ccb2b2657dfab591afe9589d8902.tar.gz
puppet-bdc0f8716ae8ccb2b2657dfab591afe9589d8902.tar.xz
puppet-bdc0f8716ae8ccb2b2657dfab591afe9589d8902.zip
Scope[] now returns nil for undefined variables
Given that we have the 'include?' method, this feature is unnecessary, and it makes sense to convert to more ruby-like behavior. Any code that previously checked whether lookupvar (or the new []) returned :undefined should now check whether 'scope.include?(var)'. Thus, you can have the same behavior, but it takes a bit different code to get it. Signed-off-by: Luke Kanies <luke@puppetlabs.com> Reviewed-by: Nick Lewis <nick@puppetlabs.com>
Diffstat (limited to 'test/util/autoload.rb')
0 files changed, 0 insertions, 0 deletions