Module: CMess::Version

Defined in:
lib/cmess/version.rb

Overview

#

A component of cmess, the encoding tool-box. #

#

Copyright © 2007-2009 University of Cologne, #

Albertus-Magnus-Platz,                              #
50932 Cologne, Germany                              #
                                                    #

Authors: #

Jens Wille <[email protected]>                                    #
                                                                        #

cmess is free software; you can redistribute it and/or modify it under the # terms of the GNU General Public License as published by the Free Software # Foundation; either version 3 of the License, or (at your option) any later # version. #

#

cmess is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more # details. #

#

You should have received a copy of the GNU General Public License along # with cmess. If not, see <www.gnu.org/licenses/>. #

#

++

Constant Summary collapse

MAJOR =
0
MINOR =
2
TINY =
1

Class Method Summary collapse

Class Method Details

.to_aObject

Returns array representation.



38
39
40
# File 'lib/cmess/version.rb', line 38

def to_a
  [MAJOR, MINOR, TINY]
end

.to_sObject

Short-cut for version string.



43
44
45
# File 'lib/cmess/version.rb', line 43

def to_s
  to_a.join('.')
end