Sha256: a562c5793b4fb388b0612475c1ad370a7748ab1381889b5ed5205d3507cad246

Contents?: true

Size: 409 Bytes

Versions: 2

Compression:

Stored size: 409 Bytes

Contents

module ActiveMerchant #:nodoc:
  module Generator
    class Manifest
      attr_reader :templates, :directories

      def initialize
        @templates, @directories = [], []
        yield self if block_given?
      end

      def template(input, output)
        @templates << { :input => input, :output => output }
      end

      def directory(dir)
        @directories << dir
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activemerchant-1.2.0 script/generator/manifest.rb
activemerchant-1.2.1 script/generator/manifest.rb