Sha256: 0b6a0001572afc1d52ef1fea02a75f34464912e7cbe82acef00fb0af3176c41c

Contents?: true

Size: 378 Bytes

Versions: 2

Compression:

Stored size: 378 Bytes

Contents

module Fabricators
  class Reader

    def initialize(name, options, &block)
      @name = name
      @options = options
      instance_eval &block
    end
    
    def fabricator(name, options={}, &block)
      Fabricators.definitions.fabricator name, @options.merge(options.merge(parent: @name)), &block
    end

    def method_missing(name, *args, &block)
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fabricators-0.0.4 lib/fabricators/reader.rb
fabricators-0.0.1 lib/fabricators/reader.rb