Class: Maven::Model::NamedArray
- Inherits:
-
Array
- Object
- Array
- Maven::Model::NamedArray
- Defined in:
- lib/maven/model/utils.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, &block) ⇒ NamedArray
constructor
A new instance of NamedArray.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
127 128 129 |
# File 'lib/maven/model/utils.rb', line 127 def name @name end |