Sha256: 2eb61166e8409c6217cf074877e52177dec863e85d40789183aee119e92d5548

Contents?: true

Size: 358 Bytes

Versions: 1

Compression:

Stored size: 358 Bytes

Contents

module FactoryGirl
  class Proxy #:nodoc:
    class AttributesFor < Proxy #:nodoc:
      def initialize(klass)
        @hash = {}
      end

      def get_attr(attribute)
        @hash[attribute]
      end

      def set_attr(attribute, value)
        @hash[attribute] = value
      end

      def result(to_create)
        @hash
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
factory_girl_kibiz0r-2.0.0.beta3 lib/factory_girl/proxy/attributes_for.rb