Sha256: 0df19b35f321cef0c3219d504493333af81376ca5647ecb4235e1b93cdd8482c

Contents?: true

Size: 402 Bytes

Versions: 8

Compression:

Stored size: 402 Bytes

Contents

module FactoryGirl
  class Decorator < BasicObject
    undef_method :==

    def initialize(component)
      @component = component
    end

    def method_missing(name, *args, &block)
      @component.send(name, *args, &block)
    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

8 entries across 8 versions & 4 rubygems

Version Path
ffactory_girl-4.8.2 lib/factory_girl/decorator.rb
factory_girl-4.9.0 lib/factory_girl/decorator.rb
ffactory_girl-4.8.1 lib/factory_girl/decorator.rb
factory_girl-4.8.1 lib/factory_girl/decorator.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/factory_girl-4.8.0/lib/factory_girl/decorator.rb
factory_girl-4.8.0 lib/factory_girl/decorator.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/factory_girl-4.7.0/lib/factory_girl/decorator.rb
factory_girl-4.7.0 lib/factory_girl/decorator.rb