Sha256: 09a27012d58db1c6c6ee5cc34cd606e94dd3fb8799ad395c4f678c161680a6b8

Contents?: true

Size: 457 Bytes

Versions: 2

Compression:

Stored size: 457 Bytes

Contents

# frozen_string_literal: true

require 'erb'

module Commander
  module HelpFormatter
    class TerminalCompact < Terminal
      def template(name)
        if RUBY_VERSION < '2.6'
          ERB.new(File.read(File.join(File.dirname(__FILE__), 'terminal_compact', "#{name}.erb")), nil, '-')
        else
          ERB.new(File.read(File.join(File.dirname(__FILE__), 'terminal_compact', "#{name}.erb")), trim_mode: '-')
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
commander-5.0.0 lib/commander/help_formatters/terminal_compact.rb
commander-4.6.0 lib/commander/help_formatters/terminal_compact.rb