Sha256: 841db7513d2b0710c80aa9f127d13062e51db336b1e8d752d5ffad8bcb80213a

Contents?: true

Size: 513 Bytes

Versions: 8

Compression:

Stored size: 513 Bytes

Contents

module SimpleCommander
  ##
  # = Help Formatter
  #
  # Commander's help formatters control the output when
  # either the help command, or --help switch are called.
  # The default formatter is Commander::HelpFormatter::Terminal.

  module HelpFormatter
    class Base
      def initialize(runner)
        @runner = runner
      end

      def render
        'Implement global help here'
      end

      def render_command(command)
        "Implement help for #{command.name} here"
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
simple_commander-0.6.1 lib/simple_commander/help_formatters/base.rb
simple_commander-0.6.0 lib/simple_commander/help_formatters/base.rb
simple_commander-0.5.1 lib/simple_commander/help_formatters/base.rb
simple_commander-0.5.0 lib/simple_commander/help_formatters/base.rb
simple_commander-0.4.0 lib/simple_commander/help_formatters/base.rb
simple_commander-0.3.1 lib/simple_commander/help_formatters/base.rb
simple_commander-0.3.0 lib/simple_commander/help_formatters/base.rb
simple_commander-0.1.0 lib/simple_commander/help_formatters/base.rb