Implements the Composite pattern on SexpProcessor. Need we say more?
Yeah… probably. Implements a SexpProcessor of SexpProcessors so you can easily chain multiple to each other. At some stage we plan on having all of them run process and but only ever output something when generate is called, allowing for deferred final processing.
Add a processor to the list of processors to run.
# File lib/composite_sexp_processor.rb, line 27 27: def <<(processor) 28: raise ArgumentError, "Can only add sexp processors" unless 29: SexpProcessor === processor || processor.respond_to?(:process) 30: @processors << processor 31: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.