Permalink
Browse files

Merge pull request #11 from makandra/dont-override-object-tap

Properly check for Object#tap existence
  • Loading branch information...
2 parents a71091e + e4025c3 commit d6c4545b6649c70495c26e2038206c5fdb2d14d6 @raganwald committed on GitHub Feb 28, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/andand.rb
View
@@ -67,7 +67,7 @@ def me (p = nil)
end
end
- unless Object.instance_methods.include?('tap')
+ unless Object.instance_methods.map(&:to_sym).include?(:tap)
alias :tap :me
end

0 comments on commit d6c4545

Please sign in to comment.