diff options
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 |