Class: Maven::Model::ExclusionArray

Inherits:
Array
  • Object
show all
Defined in:
lib/maven/model/dependencies.rb

Instance Method Summary collapse

Instance Method Details

#<<(*dep) ⇒ Object Also known as: push



44
45
46
47
48
# File 'lib/maven/model/dependencies.rb', line 44

def <<(*dep)
  excl = dep[0].is_a?(Exclusion) ? dep[0]: Exclusion.new(*dep.flatten)
  delete_if { |item| item == excl }
  super excl
end