class FactoryBot::Declaration::Dynamic
@api private
Attributes
block[R]
Public Class Methods
new(name, ignored = false, block = nil)
click to toggle source
Calls superclass method
FactoryBot::Declaration::new
# File lib/factory_bot/declaration/dynamic.rb, line 5 def initialize(name, ignored = false, block = nil) super(name, ignored) @block = block end
Public Instance Methods
==(other)
click to toggle source
# File lib/factory_bot/declaration/dynamic.rb, line 10 def ==(other) self.class == other.class && name == other.name && ignored == other.ignored && block == other.block end
Private Instance Methods
build()
click to toggle source
# File lib/factory_bot/declaration/dynamic.rb, line 23 def build [Attribute::Dynamic.new(name, @ignored, @block)] end