Skip to content

Commit

Permalink
remove explicit check to honor duck typing
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed May 3, 2013
1 parent 4e16491 commit d0f491d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tasks/mrbgem_spec.rake
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ module MRuby
end end


def <<(gem) 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 } unless @ary.detect {|g| g.dir == gem.dir }
@ary << gem @ary << gem
else else
Expand Down

0 comments on commit d0f491d

Please sign in to comment.