remove explicit check to honor duck typing

parent 4e16491f
......@@ -182,7 +182,6 @@ module MRuby
end
def <<(gem)
fail ArgumentError.new("Don't find directory for this GEM") unless gem.respond_to? :dir
unless @ary.detect {|g| g.dir == gem.dir }
@ary << gem
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment