Rename Rule to RuleSet
This commit is contained in:
1 parent
164a4854fb
commit
a0af8b0d7c
3 files changed
+17
-17
No files matched your search
@@ -1,39 +0,0 @@
|
||||
class Propane
|
||||
|
||||
class Rule
|
||||
|
||||
class Pattern
|
||||
|
||||
attr_reader :rule
|
||||
|
||||
attr_reader :components
|
||||
|
||||
attr_reader :code
|
||||
|
||||
def initialize(rule, components, code)
|
||||
@rule = rule
|
||||
@components = components
|
||||
@code = code
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
attr_reader :id
|
||||
|
||||
attr_reader :name
|
||||
|
||||
attr_reader :patterns
|
||||
|
||||
def initialize(name, id)
|
||||
@name = name
|
||||
@id = id
|
||||
@patterns = []
|
||||
end
|
||||
|
||||
def add_pattern(components, code)
|
||||
@patterns << Pattern.new(self, components, code)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user