Module: RubbyCop::Version

Defined in:
lib/rubbycop/version.rb

Overview

This module holds the RubbyCop version information.

Constant Summary collapse

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

Class Method Summary collapse

Class Method Details

.version(debug = false) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/rubbycop/version.rb', line 10

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