Manifest captures the actions a generator performs. Instantiate a manifest with an optional target object, hammer it with actions, then replay or rewind on the object of your choice.
Example:
manifest = Manifest.new { |m| m.make_directory '/foo' m.create_file '/foo/bar.txt' } manifest.replay(creator) manifest.rewind(destroyer)
Erase recorded actions.
# File lib/rubigen/manifest.rb, line 39 39: def erase 40: @actions = [] 41: end
Record an action.
# File lib/rubigen/manifest.rb, line 24 24: def method_missing(action, *args, &block) 25: @actions << [action, args, block] 26: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.