Method: Maven::Model::ResourceArray#initialize
- Defined in:
- lib/maven/model/utils.rb
#initialize(name = 'resources', child = Resource, &block) ⇒ ResourceArray
Returns a new instance of ResourceArray.
139 140 141 142 143 144 145 146 |
# File 'lib/maven/model/utils.rb', line 139 def initialize( name = 'resources', child = Resource, &block ) @_child = child #super( name, &block ) if block block.call self end self end |