Sha256: 62cbf6134e89717a0ace532f96d5947cc3ece481c876a94f6414e1aa40781011
Contents?: true
Size: 557 Bytes
Versions: 7
Compression:
Stored size: 557 Bytes
Contents
module FactoryBot class Decorator < BasicObject undef_method :== def initialize(component) @component = component end def method_missing(name, *args, &block) # rubocop:disable Style/MethodMissing @component.send(name, *args, &block) end def respond_to_missing?(name, include_private = false) @component.respond_to?(name, true) || super end def send(symbol, *args, &block) __send__(symbol, *args, &block) end def self.const_missing(name) ::Object.const_get(name) end end end
Version data entries
7 entries across 7 versions & 1 rubygems