class FactoryBot::Attribute
@api private
Attributes
ignored[R]
name[R]
Public Class Methods
new(name, ignored)
click to toggle source
# File lib/factory_bot/attribute.rb, line 10 def initialize(name, ignored) @name = name.to_sym @ignored = ignored end
Public Instance Methods
alias_for?(attr)
click to toggle source
# File lib/factory_bot/attribute.rb, line 23 def alias_for?(attr) FactoryBot.aliases_for(attr).include?(name) end
association?()
click to toggle source
# File lib/factory_bot/attribute.rb, line 19 def association? false end
to_proc()
click to toggle source
# File lib/factory_bot/attribute.rb, line 15 def to_proc -> {} end