class FactoryBot::EvaluatorClassDefiner
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/factory_bot/evaluator_class_definer.rbs class FactoryBot::EvaluatorClassDefiner def evaluator_class: () -> Class end
@api private
def evaluator_class
Experimental RBS support (using type sampling data from the type_fusion
project).
def evaluator_class: () -> Class
This signature was generated using 5 samples from 1 application.
def evaluator_class @evaluator_class ||= Class.new(@parent_class).tap do |klass| klass.attribute_lists ||= [] klass.attribute_lists += [@attributes] end end
def initialize(attributes, parent_class)
def initialize(attributes, parent_class) @parent_class = parent_class @attributes = attributes attributes.each do |attribute| evaluator_class.define_attribute(attribute.name, &attribute.to_proc) end end