Sha256: 8dd740e33b94a449bab94346fccb8c0e897660549dbde91483fbe8a2189cd29a
Contents?: true
Size: 562 Bytes
Versions: 4
Compression:
Stored size: 562 Bytes
Contents
module FactoryBot class Decorator < BasicObject undef_method :== def initialize(component) @component = component end def method_missing(name, *args, &block) # rubocop:disable Style/MethodMissingSuper @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
4 entries across 4 versions & 1 rubygems