From 108cb399d8210b7db0f3784654165cf3f7f5cfa7 Mon Sep 17 00:00:00 2001 From: SKoschnicke Date: Wed, 7 Dec 2011 15:34:28 +0100 Subject: [PATCH] ruby 1.9 compatibility --- lib/wrapper_base.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/wrapper_base.rb b/lib/wrapper_base.rb index cc5964a..1dbff6a 100644 --- a/lib/wrapper_base.rb +++ b/lib/wrapper_base.rb @@ -1,7 +1,7 @@ class WrapperBase ALLOWED_METHODS = ["__id__","__send__", "is_a?", "kind_of?", "hash", "class", "inspect"] - eval((public_instance_methods - ALLOWED_METHODS).collect{|meth| "undef "+meth}.join("; ")) + eval((public_instance_methods - ALLOWED_METHODS).collect{|meth| "undef "+meth.to_s}.join("; ")) # Create a wrapper, passing in an object to wrap def initialize(wrapped_object) @@ -35,4 +35,4 @@ def _wrapped_object def self.wrapper_class? true end -end \ No newline at end of file +end