class FactoryBot::Decorator
Public Class Methods
const_missing(name)
click to toggle source
# File lib/factory_bot/decorator.rb, line 21 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 9 def method_missing(name, *args, &block) # rubocop:disable Style/MethodMissing @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 13 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 17 def send(symbol, *args, &block) __send__(symbol, *args, &block) end