Sha256: 18c4fc32c6f176a4e0cb743b47a7f695b28cf6aa1f8fda7c9d5482e28c4abf0b

Contents?: true

Size: 355 Bytes

Versions: 2

Compression:

Stored size: 355 Bytes

Contents

module Makers
  class Fetcher

    def initialize(name, options, &block)
      @name = name
      @options = options
      instance_eval &block
    end

    def maker(name, options={}, &block)
      Makers.definitions.maker 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
makers-0.1.3 lib/makers/fetcher.rb
makers-0.1.2 lib/makers/fetcher.rb