Skip to content

Commit

Permalink
IoHackStream: add Symbol objects into a method names array (for Ruby …
Browse files Browse the repository at this point in the history
…1.9)
  • Loading branch information
oupo committed Nov 19, 2010
1 parent 2960a3a commit cccc486
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/support.rb
Expand Up @@ -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)
Expand Down

0 comments on commit cccc486

Please sign in to comment.