class FactoryGirl::Attribute
@api private
Attributes
ignored[R]
name[R]
Public Class Methods
new(name, ignored)
click to toggle source
# File lib/factory_girl/attribute.rb, line 11 def initialize(name, ignored) @name = name.to_sym @ignored = ignored ensure_non_attribute_writer! end
Public Instance Methods
alias_for?(attr)
click to toggle source
# File lib/factory_girl/attribute.rb, line 25 def alias_for?(attr) FactoryGirl.aliases_for(attr).include?(name) end
association?()
click to toggle source
# File lib/factory_girl/attribute.rb, line 21 def association? false end
to_proc()
click to toggle source
# File lib/factory_girl/attribute.rb, line 17 def to_proc -> { } end
Private Instance Methods
ensure_non_attribute_writer!()
click to toggle source
# File lib/factory_girl/attribute.rb, line 31 def ensure_non_attribute_writer! NonAttributeWriterValidator.new(@name).validate! end