Class: Loops::Version

Inherits:
Object
  • Object
show all
Defined in:
lib/loops/version.rb

Overview

Contains information about currently used Loops version.

Examples:

puts "Loops #{Loops::Version}"

Constant Summary collapse

CURRENT =

Returns a Hash containing major, minor, and patch version parts.

Returns:

  • (Hash<Symbol, Integer>)

    a Hash containing major, minor, and patch version parts.

YAML.load_file(File.join(Loops::LIB_ROOT, '../VERSION.yml'))
MAJOR =

Returns a major part of the Loops version.

Returns:

  • (Integer)

    a major part of the Loops version.

CURRENT[:major]
MINOR =

Returns a minor part of the Loops version.

Returns:

  • (Integer)

    a minor part of the Loops version.

CURRENT[:minor]
PATCH =

Returns a patch part of the Loops version.

Returns:

  • (Integer)

    a patch part of the Loops version.

CURRENT[:patch]
STRING =

Returns a string representation of the Loops version.

Returns:

  • (String)

    a string representation of the Loops version.

"%d.%d.%d" % [MAJOR, MINOR, PATCH]

Class Method Summary collapse

Class Method Details

.to_sString

Returns a string representation of the Loops version.

Returns:

  • (String)

    a string representation of the Loops version.



28
29
30
# File 'lib/loops/version.rb', line 28

def self.to_s
  STRING
end