class FactoryBot::Decorator
Public Class Methods
Source
# File lib/factory_bot/decorator.rb, line 21 def self.const_missing(name) ::Object.const_get(name) end
Source
# File lib/factory_bot/decorator.rb, line 5 def initialize(component) @component = component end
Public Instance Methods
Source
# File lib/factory_bot/decorator.rb, line 9 def method_missing(...) # rubocop:disable Style/MethodMissingSuper @component.send(...) end
Source
# File lib/factory_bot/decorator.rb, line 17 def respond_to_missing?(name, include_private = false) @component.respond_to?(name, true) || super end
Calls superclass method