Class: AtLeastTwoArray

Inherits:
MinimumSizedHomogeneousArray show all
Defined in:
lib/symphony/symphony.rb

Instance Attribute Summary

Attributes inherited from MinimumSizedHomogeneousArray

#min_size

Attributes inherited from HomogeneousArray

#klass

Instance Method Summary collapse

Methods inherited from MinimumSizedHomogeneousArray

#delete, #delete_at

Methods inherited from HomogeneousArray

#<<, #==, #[]=, #raise_type_error, #replace

Methods inherited from Array

#to_homogeneous

Constructor Details

#initialize(of_class, *spec) ⇒ AtLeastTwoArray

Returns a new instance of AtLeastTwoArray.



76
77
78
# File 'lib/symphony/symphony.rb', line 76

def initialize(of_class, *spec)
  super(2, of_class, *spec)
end