Class: Refinery::Whatson::Version

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

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.majorObject (readonly)

Returns the value of attribute major.



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

def major
  @major
end

.minorObject (readonly)

Returns the value of attribute minor.



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

def minor
  @minor
end

.tinyObject (readonly)

Returns the value of attribute tiny.



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

def tiny
  @tiny
end

Class Method Details

.to_sObject



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

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