class FactoryBot::AttributeList
def ensure_attribute_not_defined!(attribute)
Experimental RBS support (using type sampling data from the type_fusion
project).
def ensure_attribute_not_defined!: (FactoryBot::Attribute::Dynamic attribute) -> nil
This signature was generated using 7 samples from 1 application.
def ensure_attribute_not_defined!(attribute) if attribute_defined?(attribute.name) raise AttributeDefinitionError, "Attribute already defined: #{attribute.name}" end end