class FactoryBot::Decorator

Public Class Methods

const_missing(name) click to toggle source
# File lib/factory_bot/decorator.rb, line 33
def self.const_missing(name)
  ::Object.const_get(name)
end
new(component) click to toggle source
# File lib/factory_bot/decorator.rb, line 5
def initialize(component)
  @component = component
end

Public Instance Methods

method_missing(name, *args, &block) click to toggle source
# File lib/factory_bot/decorator.rb, line 20
def method_missing(name, *args, &block) # rubocop:disable Style/MissingRespondToMissing
  @component.send(name, *args, &block)
end
respond_to_missing?(name, include_private = false) click to toggle source
Calls superclass method
# File lib/factory_bot/decorator.rb, line 29
def respond_to_missing?(name, include_private = false)
  @component.respond_to?(name, true) || super
end
send(symbol, *args, &block) click to toggle source
# File lib/factory_bot/decorator.rb, line 24
def send(symbol, *args, &block)
  __send__(symbol, *args, &block)
end