diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-05-02 15:07:07 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-05-02 15:07:07 -0700 |
commit | bc6396592f4bb123bfa608799b14df1a0f5f086d (patch) | |
tree | 5ddabbeca6be5008f1acf8124fcf2c16975604ad /lib/chef/decorator.rb | |
parent | 754889d5563a23ca55faa2534f951d8315b8b63e (diff) | |
download | chef-bc6396592f4bb123bfa608799b14df1a0f5f086d.tar.gz |
tweak some details
Diffstat (limited to 'lib/chef/decorator.rb')
-rw-r--r-- | lib/chef/decorator.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/decorator.rb b/lib/chef/decorator.rb index aa1f399d9f..546c49baed 100644 --- a/lib/chef/decorator.rb +++ b/lib/chef/decorator.rb @@ -21,9 +21,9 @@ class Chef class Decorator < SimpleDelegator NULL = ::Object.new - def initialize(obj: NULL) - super(obj) unless obj == NULL + def initialize(obj = NULL) @__defined_methods__ = [] + super unless obj.equal?(NULL) end # if we wrap a nil then decorator.nil? should be true |