Use to_a definition from Enumerable
This commit is contained in:
parent
804872fc94
commit
3f6827374f
@ -22,9 +22,6 @@ class Dependencies
|
|||||||
@deps * arg
|
@deps * arg
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_a
|
|
||||||
@deps
|
|
||||||
end
|
|
||||||
alias_method :to_ary, :to_a
|
alias_method :to_ary, :to_a
|
||||||
|
|
||||||
def optional
|
def optional
|
||||||
|
|||||||
@ -109,9 +109,6 @@ class Options
|
|||||||
self
|
self
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_a
|
|
||||||
@options.to_a
|
|
||||||
end
|
|
||||||
alias_method :to_ary, :to_a
|
alias_method :to_ary, :to_a
|
||||||
|
|
||||||
def inspect
|
def inspect
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user