lib/gli/commands/doc.rb in gli-2.6.0.rc1 vs lib/gli/commands/doc.rb in gli-2.6.0

- old
+ new

@@ -21,11 +21,11 @@ default_value 'rdoc' arg_name 'name_or_class' flag :format action do |global_options,options,arguments| - self.document(format_class(options[:format]).new(global_options,options,arguments)) + self.document(format_class(options[:format]).new(global_options,options,arguments,app)) end end def nodoc true @@ -52,9 +52,15 @@ document_listener.ending end # Interface for a listener that is called during various parts of the doc process class DocumentListener + def initialize(global_options,options,arguments,app) + @global_options = global_options + @options = options + @arguments = arguments + @app = app + end # Called before processing begins def beginning abstract! end