class FileComposer::Documents
Factory for building documents. To register new document types:
-
Implement a subclass for
FileComposer::Documents::Base
or a document compliant class. The only real constraint is that it is hashable using the acts_as_hashable class method and implements write!(temp_root = '', store = Stores::Null.new) -
Call FileComposer::Documents#register(name, class_constant_or_name)