# File lib/rule_engine.rb, line 28 def initialize drp_instance, method_name, weight_factory, max_depth @method = drp_instance.method method_name @max_depth = max_depth.value drp_instance @weight = weight_factory.call self, drp_instance @depth = 0 end