Method: CellularMap::Map#initialize_copy

Defined in:
lib/cellular_map/map.rb

#initialize_copy(other) ⇒ Object

:nodoc:



54
55
56
57
# File 'lib/cellular_map/map.rb', line 54

def initialize_copy(other) # :nodoc:
  @store = {}
  other.each { |c| self[c.x, c.y] = c.content }
end