Sha256: 95656ab5d1ea79d6af4212a05b26ff5ec218346e9c81f33a1d020eb09ec37246
Contents?: true
Size: 410 Bytes
Versions: 25
Compression:
Stored size: 410 Bytes
Contents
class Factory class Attribute #:nodoc: class Dynamic < Attribute #:nodoc: def initialize(name, block) super(name) @block = block end def add_to(proxy) value = @block.arity.zero? ? @block.call : @block.call(proxy) if Factory::Sequence === value raise SequenceAbuseError end proxy.set(name, value) end end end end
Version data entries
25 entries across 25 versions & 10 rubygems