From 9d865e40bed1e2bbd13085c1882f02b9d486f83b Mon Sep 17 00:00:00 2001 From: "Erik S. Chang" Date: Thu, 15 Apr 2010 00:24:03 +0000 Subject: [PATCH] typedb #dup and #clone are no-ops git-svn-id: https://lwes.svn.sourceforge.net/svnroot/lwes/lwes-ruby/trunk@429 a2f82657-cdd2-4550-bd36-68a8e7111808 --- lib/lwes/type_db.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/lwes/type_db.rb b/lib/lwes/type_db.rb index 75f2878..a56756f 100644 --- a/lib/lwes/type_db.rb +++ b/lib/lwes/type_db.rb @@ -21,5 +21,15 @@ module LWES end end + # :stopdoc: + # avoid GC mis-free-ing nuked objects + def dup + self + end + + def clone + self + end + end end -- 2.11.4.GIT