lib/atome/kernel/universe.rb in atome-0.5.6.6.1 vs lib/atome/kernel/universe.rb in atome-0.5.6.6.5
- old
+ new
@@ -103,19 +103,24 @@
end
def id_to_aid(id, aid)
@atomes_ids[id] = aid
end
+ # def update_atome_id(aid, atome, prev_id)
+ # @atomes[id] = atome
+ # @atomes.delete(prev_id)
+ # end
+ # def update_atome_id(id, atome, prev_id)
+ # @atomes[id] = atome
+ # @atomes.delete(prev_id)
+ # end
- def update_atome_id(id, atome, prev_id)
- @atomes[id] = atome
- @atomes.delete(prev_id)
- end
-
def user_atomes
collected_id = []
@atomes.each do |id_found, atome_found|
- collected_id << id_found unless atome_found.tag && atome_found.tag[:system]
+ # collected_id << id_found unless atome_found.tag && atome_found.tag[:system]
+ collected_id << atome_found.id unless atome_found.tag && atome_found.tag[:system]
+
end
collected_id
end
def system_atomes