# File lib/weights_and_max_depths.rb, line 77 def self.factory args_or_proc proc do |rule_method, drp_instance| self.new WeightArgs.new(args_or_proc, rule_method, drp_instance) end end