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)


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

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

.to_aArray(Integer, Integer, Integer)

Returns:

  • (Array(Integer, Integer, Integer))


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

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

.to_sString

Returns:

  • (String)


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

def self.to_s() STRING end

.to_strString

Returns:

  • (String)


16
# File 'lib/sycamore/version.rb', line 16

def self.to_str() STRING end