class FactoryBot::Evaluation
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/factory_bot/evaluation.rbs class FactoryBot::Evaluation def create: (Types::Sample result_instance) -> true def initialize: ((#<Class:0x00000001107f6ff0> | #<Class:0x0000000115494740>) evaluator, FactoryBot::AttributeAssigner attribute_assigner, Proc to_create) -> void def notify: (Symbol name, Types::Sample result_instance) -> false end
def create(result_instance)
Experimental RBS support (using type sampling data from the type_fusion
project).
def create: (Types::Sample result_instance) -> true
This signature was generated using 2 samples from 1 application.
def create(result_instance) case @to_create.arity when 2 then @to_create[result_instance, @evaluator] else @to_create[result_instance] end end
def initialize(evaluator, attribute_assigner, to_create)
Experimental RBS support (using type sampling data from the type_fusion
project).
def initialize: ((#<Class:0x00000001107f6ff0> | #<Class:0x0000000115494740>) evaluator, FactoryBot::AttributeAssigner attribute_assigner, Proc to_create) -> void
This signature was generated using 2 samples from 2 applications.
def initialize(evaluator, attribute_assigner, to_create) @evaluator = evaluator @attribute_assigner = attribute_assigner @to_create = to_create end
def notify(name, result_instance)
Experimental RBS support (using type sampling data from the type_fusion
project).
def notify: (Symbol name, Types::Sample result_instance) -> false
This signature was generated using 4 samples from 1 application.
def notify(name, result_instance) changed notify_observers(name, result_instance) end