Sha256: 885bdcb9f9cf67d4de8b004203e7dd2df3012ec688546428ad56ff922b55f55a

Contents?: true

Size: 344 Bytes

Versions: 3

Compression:

Stored size: 344 Bytes

Contents

module Commander
  module HelpFormatter
    autoload :Base, 'commander/help_formatters/base'
    autoload :Terminal, 'commander/help_formatters/terminal'
    autoload :TerminalCompact, 'commander/help_formatters/terminal_compact'

    module_function

    def indent(amount, text)
      text.gsub("\n", "\n" + (' ' * amount))
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
commander-4.3.3 lib/commander/help_formatters.rb
commander-4.3.2 lib/commander/help_formatters.rb
commander-4.3.1 lib/commander/help_formatters.rb