Sha256: 441b41b6333bdd6edc9a9dd00c804dd2e0e5a1fb5126d7a4768b01deac345988

Contents?: true

Size: 343 Bytes

Versions: 5

Compression:

Stored size: 343 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

5 entries across 5 versions & 1 rubygems

Version Path
commander-4.2.1 lib/commander/help_formatters.rb
commander-4.2.0 lib/commander/help_formatters.rb
commander-4.1.6 lib/commander/help_formatters.rb
commander-4.1.5 lib/commander/help_formatters.rb
commander-4.1.4 lib/commander/help_formatters.rb