summaryrefslogtreecommitdiff
path: root/lib/chef/monkey_patches/object.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/monkey_patches/object.rb')
-rw-r--r--lib/chef/monkey_patches/object.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/chef/monkey_patches/object.rb b/lib/chef/monkey_patches/object.rb
new file mode 100644
index 0000000000..017a4b7938
--- /dev/null
+++ b/lib/chef/monkey_patches/object.rb
@@ -0,0 +1,9 @@
+class Object
+ unless new.respond_to?(:tap)
+ def tap
+ yield self
+ return self
+ end
+ end
+end
+