Module: MediaWiki::Version

Defined in:
lib/media_wiki/version.rb

Constant Summary collapse

MAJOR =
1
MINOR =
1
PATCH =
0

Class Method Summary collapse

Class Method Details

.to_aObject

Returns array representation.



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

def to_a
  [MAJOR, MINOR, PATCH]
end

.to_sObject

Short-cut for version string.



17
18
19
# File 'lib/media_wiki/version.rb', line 17

def to_s
  to_a.join('.')
end