Skip to content
Snippets Groups Projects
Commit b100ad22 authored by Xu Cheng's avatar Xu Cheng
Browse files

Tap#==: allow compare with string

parent 72f4323e
No related branches found
No related tags found
No related merge requests found
......@@ -297,6 +297,11 @@ class Tap
end
end
def ==(other)
other = Tap.fetch(other) if other.is_a?(String)
self.class == other.class && self.name == other.name
end
def self.each
return unless TAP_DIRECTORY.directory?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment