From bc6396592f4bb123bfa608799b14df1a0f5f086d Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Mon, 2 May 2016 15:07:07 -0700 Subject: tweak some details --- lib/chef/decorator.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/chef/decorator.rb') 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 -- cgit v1.2.1