class RuleTable::ConfiguredMatcher
Attributes
matcher_name[R]
Public Class Methods
new(matcher_name, *args)
click to toggle source
# File lib/rule_table.rb, line 71 def initialize(matcher_name, *args) @matcher_name = matcher_name @matcher = RuleTable.matchers.fetch(matcher_name) @args = args end
Public Instance Methods
matches?(object)
click to toggle source
# File lib/rule_table.rb, line 77 def matches?(object) object.instance_exec(*@args, &@matcher) end