Module: RuboCop::Version

Defined in:
lib/rubocop/version.rb

Overview

This module holds the RuboCop version information.

Constant Summary collapse

STRING =
'0.76.0'
MSG =
'%<version>s (using Parser %<parser_version>s, running on ' \
'%<ruby_engine>s %<ruby_version>s %<ruby_platform>s)'

Class Method Summary collapse

Class Method Details

.version(debug = false) ⇒ Object


11
12
13
14
15
16
17
18
19
# File 'lib/rubocop/version.rb', line 11

def self.version(debug = false)
  if debug
    format(MSG, version: STRING, parser_version: Parser::VERSION,
                ruby_engine: RUBY_ENGINE, ruby_version: RUBY_VERSION,
                ruby_platform: RUBY_PLATFORM)
  else
    STRING
  end
end