Class

Manifest

Extends:

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)
Public Attributes
target
Public Methods
erase Erase recorded actions.
method_missing Record an action.
new Take a default action target. Yield self if block given.
replay Replay recorded actions.
rewind Rewind recorded actions.
Private Methods
send_actions
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.