Keep track of item set in-links

This commit is contained in:
josh committed 2021-09-21 21:32:18 -04:00
1 parent a2795bb531
commit 997f34a1e4
2 files changed
+10

No files matched your search

+5
View File
@@ -11,9 +11,14 @@ class Imbecile
# Maps a follow symbol to its item set.
attr_reader :follow_item_set
# @return [Set]
# Item sets leading to this item set.
attr_reader :in_sets
def initialize(items)
@items = Set.new(items)
@follow_item_set = {}
@in_sets = Set.new
close!
end