Class: Maven::Model::NamedArray

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, &block) ⇒ NamedArray

Returns a new instance of NamedArray.



128
129
130
131
132
133
134
# File 'lib/maven/model/utils.rb', line 128

def initialize(name, &block)
  @name = name.to_s
  if block
    block.call(self)
  end
  self
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



127
128
129
# File 'lib/maven/model/utils.rb', line 127

def name
  @name
end