Rename Rule to RuleSet
This commit is contained in:
1 parent
164a4854fb
commit
a0af8b0d7c
3 files changed
+17
-17
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user