mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Tap#==: allow compare with string
This commit is contained in:
parent
72f4323ea5
commit
b100ad223d
@ -297,6 +297,11 @@ class Tap
|
|||||||
end
|
end
|
||||||
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
|
def self.each
|
||||||
return unless TAP_DIRECTORY.directory?
|
return unless TAP_DIRECTORY.directory?
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user