Module: Gotoinc::Standard::Version

Defined in:
lib/gotoinc/standard/version.rb

Constant Summary collapse

STRING =
'1.0.2'
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
20
21
# File 'lib/gotoinc/standard/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