Method: Coglius::Commands::Doc#document
- Defined in:
- lib/coglius/commands/doc.rb
#document(document_listener) ⇒ Object
Generates documentation using the listener
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/coglius/commands/doc.rb', line 33 def document(document_listener) document_listener.beginning document_listener.program_desc(@app.program_desc) unless @app.program_desc.nil? document_listener.program_long_desc(@app.program_long_desc) unless @app.program_long_desc.nil? document_listener.version(@app.version_string) if (@app) document_listener. end document_flags_and_switches(document_listener, @app.flags.values.sort(&by_name), @app.switches.values.sort(&by_name)) if (@app) document_listener. end document_listener.commands document_commands(document_listener,@app) document_listener.end_commands document_listener.ending end |