Sha256: d2ae6c2474a3339ba6c6d9cff4a07e32c4427b414b6a399ed77aec96aab9eb80
Contents?: true
Size: 284 Bytes
Versions: 3
Compression:
Stored size: 284 Bytes
Contents
module FakerMaker module Base def factory name, options={}, &block factory = FakerMaker::Factory.new name, options proxy = DefinitionProxy.new factory proxy.instance_eval &block if block_given? FakerMaker.register_factory factory end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
faker_maker-0.7.1 | lib/faker_maker/base.rb |
faker_maker-0.7.0 | lib/faker_maker/base.rb |
faker_maker-0.6.0 | lib/faker_maker/base.rb |