Skip to content

Commit

Permalink
Suppress warning by adding 'true' to instance_methods
Browse files Browse the repository at this point in the history
  • Loading branch information
rmagick committed Oct 17, 2005
1 parent cc62a44 commit 74ee678
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/RMagick.rb
@@ -1,4 +1,4 @@
# $Id: RMagick.rb,v 1.33 2005/09/13 23:37:21 rmagick Exp $ # $Id: RMagick.rb,v 1.34 2005/10/17 22:17:38 rmagick Exp $
#============================================================================== #==============================================================================
# Copyright (C) 2005 by Timothy P. Hunter # Copyright (C) 2005 by Timothy P. Hunter
# Name: RMagick.rb # Name: RMagick.rb
Expand Down Expand Up @@ -1225,7 +1225,7 @@ def find_all(&block)
return a return a
end end


if self.superclass.instance_methods.include? 'insert' then if self.superclass.instance_methods(true).include? 'insert' then
def insert(*args) def insert(*args)
raise(ArgumentError, "can't insert nil") unless args.length > 1 raise(ArgumentError, "can't insert nil") unless args.length > 1
is_a_image_array args[1,args.length-1] is_a_image_array args[1,args.length-1]
Expand Down

0 comments on commit 74ee678

Please sign in to comment.