Sha256: 8631a7e8aa629a6eecea7679e059a9225bb53d68fe325bd68d526a01a2f7c4d3

Contents?: true

Size: 433 Bytes

Versions: 1

Compression:

Stored size: 433 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  # This module holds the RuboCop version information.
  module Version
    STRING = '0.45.0'.freeze

    MSG = '%s (using Parser %s, running on %s %s %s)'.freeze

    module_function

    def version(debug = false)
      if debug
        format(MSG, STRING, Parser::VERSION,
               RUBY_ENGINE, RUBY_VERSION, RUBY_PLATFORM)
      else
        STRING
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubocop-0.45.0 lib/rubocop/version.rb