Implement Action#format

Closes #15