Use the Enumerable implementation of include?
This commit is contained in:
parent
ae4b9fffd4
commit
4c4193e905
@ -10,7 +10,7 @@ class Dependencies
|
|||||||
end
|
end
|
||||||
|
|
||||||
def <<(o)
|
def <<(o)
|
||||||
@deps << o unless @deps.include? o
|
@deps << o unless include?(o)
|
||||||
self
|
self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user