Module: Sycamore::VERSION

Defined in:
lib/sycamore/version.rb

Overview

version representation

Constant Summary collapse

FILE =

the file containing the project version number

File.expand_path("../../../VERSION", __FILE__)
STRING =

the normalized version string

[MAJOR, MINOR, TINY, EXTRA].compact.join(".").freeze

Class Method Summary collapse

Class Method Details

.==(other) ⇒ Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/sycamore/version.rb', line 30

def self.==(other)
  other == to_s
end

.to_aArray(Integer, Integer, Integer)

Returns:

  • (Array(Integer, Integer, Integer))


24
25
26
# File 'lib/sycamore/version.rb', line 24

def self.to_a
  [MAJOR, MINOR, TINY]
end

.to_sString

Returns:

  • (String)


12
13
14
# File 'lib/sycamore/version.rb', line 12

def self.to_s
  STRING
end

.to_strString

Returns:

  • (String)


18
19
20
# File 'lib/sycamore/version.rb', line 18

def self.to_str
  STRING
end