From cccc486c0efe8489c7c2f8406635ecb0c7bf5316 Mon Sep 17 00:00:00 2001 From: oupo Date: Fri, 19 Nov 2010 22:16:06 +0900 Subject: [PATCH] IoHackStream: add Symbol objects into a method names array (for Ruby 1.9) --- test/support.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/support.rb b/test/support.rb index e9df643..a6a5aae 100644 --- a/test/support.rb +++ b/test/support.rb @@ -55,6 +55,7 @@ class IoHackStream < File # except = %w(inspect kind_of?) + except += except.map{|x| x.to_sym } # for Ruby 1.9 these = ancestors[0].instance_methods # these = [1,2,3].map{|x| ancestors[x].instance_methods(false)}.flatten eraseme = (these - except)