Rename Rule to RuleSet

This commit is contained in:
josh committed 2022-05-30 15:49:12 -04:00
1 parent 164a4854fb
commit a0af8b0d7c
3 files changed
+17 -17

No files matched your search

+2 -2
View File
@@ -28,7 +28,7 @@ class Propane
end
def closed_items
if @pattern.components[@position].is_a?(Rule)
if @pattern.components[@position].is_a?(RuleSet)
@pattern.components[@position].patterns.map do |pattern|
Item.new(pattern, 0)
end
@@ -60,7 +60,7 @@ class Propane
if @position == @pattern.components.size
parts << "."
end
"#{@pattern.rule.name} -> #{parts.join(" ")}"
"#{@pattern.rule_set.name} -> #{parts.join(" ")}"
end
end