class FactoryBot::Attribute::Static
@api private
Public Class Methods
new(name, value, ignored)
click to toggle source
Calls superclass method
FactoryBot::Attribute.new
# File lib/factory_bot/attribute/static.rb, line 5 def initialize(name, value, ignored) super(name, ignored) @value = value end
Public Instance Methods
to_proc()
click to toggle source
# File lib/factory_bot/attribute/static.rb, line 10 def to_proc value = @value -> { value } end