class RuleTable::TableDefiner
Public Class Methods
new(table, &block)
click to toggle source
# File lib/rule_table.rb, line 52 def initialize(table, &block) @table = table instance_eval(&block) end
Public Instance Methods
match(matcher_name, *args)
click to toggle source
# File lib/rule_table.rb, line 61 def match(matcher_name, *args) ConfiguredMatcher.new(matcher_name, *args) end
rule(*args)
click to toggle source
# File lib/rule_table.rb, line 57 def rule(*args) @table.add_rule_for(*args) end