Class: Refinery::Version

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

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.buildObject (readonly)

Returns the value of attribute build



9
10
11
# File 'core/lib/refinery/version.rb', line 9

def build
  @build
end

.majorObject (readonly)

Returns the value of attribute major



9
10
11
# File 'core/lib/refinery/version.rb', line 9

def major
  @major
end

.minorObject (readonly)

Returns the value of attribute minor



9
10
11
# File 'core/lib/refinery/version.rb', line 9

def minor
  @minor
end

.tinyObject (readonly)

Returns the value of attribute tiny



9
10
11
# File 'core/lib/refinery/version.rb', line 9

def tiny
  @tiny
end

Class Method Details

.required_ruby_versionObject



15
16
17
# File 'core/lib/refinery/version.rb', line 15

def required_ruby_version
  '>= 2.2.2'
end

.to_sObject



11
12
13
# File 'core/lib/refinery/version.rb', line 11

def to_s
  [@major, @minor, @tiny, @build].compact.join('.')
end