Sha256: 704dda9e97a1c82faaa2ed4e7c615bfac3c7a1d5c5ed7948a555326a91dd24cc

Contents?: true

Size: 488 Bytes

Versions: 1

Compression:

Stored size: 488 Bytes

Contents

module FactoryGirl
  class Attribute #:nodoc:

    class Static < Attribute  #:nodoc:

      attr_reader :value

      def initialize(name, value)
        super(name)
        @value = value
      end

      def add_to(proxy)
        proxy.set(name, @value, @ignored)
      end

      def priority
        0
      end

      def ==(another)
        self.name == another.name &&
          self.value == another.value &&
          self.ignored == another.ignored
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
factory_girl-2.1.2 lib/factory_girl/attribute/static.rb