class FactoryBot::Decorator::InvocationTracker

Public Class Methods

new(component) click to toggle source
Calls superclass method FactoryBot::Decorator::new
# File lib/factory_bot/decorator/invocation_tracker.rb, line 4
def initialize(component)
  super
  @invoked_methods = []
end

Public Instance Methods

__invoked_methods__() click to toggle source
# File lib/factory_bot/decorator/invocation_tracker.rb, line 15
def __invoked_methods__
  @invoked_methods.uniq
end
method_missing(name, *args, &block) click to toggle source
Calls superclass method FactoryBot::Decorator#method_missing
# File lib/factory_bot/decorator/invocation_tracker.rb, line 9
def method_missing(name, *args, &block) # rubocop:disable Style/MissingRespondToMissing
  @invoked_methods << name
  super
end