Method: Array#to_homogeneous

Defined in:
lib/symphony/symphony.rb

#to_homogeneous(of_type) ⇒ Object



116
117
118
119
120
# File 'lib/symphony/symphony.rb', line 116

def to_homogeneous(of_type)
  harray = HomogeneousArray.new(of_type)
  self.each{ |item| harray << item }
  harray
end