Sha256: febafac465916bfed955eb2e9f61bf85d3442d9b14a6744f3363457745b28cf6

Contents?: true

Size: 553 Bytes

Versions: 15

Compression:

Stored size: 553 Bytes

Contents

module Tap
  module Generator
    
    # Manifest records methods called upon it using method_missing.  These
    # actions are replayed on a generator in order (for generate) or in
    # reverse order (for destroy).
    class Manifest
      
      # Makes a new Manifest.  Method calls on self are recorded to actions.
      def initialize(actions)
        @actions = actions
      end

      # Records an action.
      def method_missing(action, *args, &block)
        @actions << [action, args, block]
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
tap-gen-0.8.0 lib/tap/generator/manifest.rb
tap-gen-0.7.1 lib/tap/generator/manifest.rb
tap-gen-0.7.0 lib/tap/generator/manifest.rb
tap-gen-0.3.1 lib/tap/generator/manifest.rb
tap-gen-0.3.0 lib/tap/generator/manifest.rb
tap-gen-0.2.0 lib/tap/generator/manifest.rb
tap-0.12.0 lib/tap/generator/manifest.rb
tap-0.12.2 lib/tap/generator/manifest.rb
tap-0.12.4 lib/tap/generator/manifest.rb
tap-0.12.3 lib/tap/generator/manifest.rb
tap-0.12.1 lib/tap/generator/manifest.rb
tap-gen-0.1.2 lib/tap/generator/manifest.rb
tap-gen-0.1.0 lib/tap/generator/manifest.rb
tap-gen-0.1.1 lib/tap/generator/manifest.rb
tap-gen-0.1.3 lib/tap/generator/manifest.rb