Class: Maven::Model::DependencyArray
- Inherits:
-
Array
- Object
- Array
- Maven::Model::DependencyArray
- Defined in:
- lib/maven/model/dependencies.rb
Instance Method Summary collapse
- #<<(dep) ⇒ Object (also: #push)
Instance Method Details
#<<(dep) ⇒ Object Also known as: push
30 31 32 33 34 35 36 37 38 39 |
# File 'lib/maven/model/dependencies.rb', line 30 def <<(dep) raise "not of type Dependency" unless dep.is_a?(Dependency) d = detect { |item| item == dep } if d d.version = dep.version self else super end end |