Module: PlutoNews

Defined in:
lib/pluto/news/version.rb

Constant Summary collapse

MAJOR =
1
MINOR =
1
PATCH =
0
VERSION =
[MAJOR,MINOR,PATCH].join('.')

Class Method Summary collapse

Class Method Details



13
14
15
16
# File 'lib/pluto/news/version.rb', line 13

def self.banner
  ### todo: add RUBY_PATCHLEVEL or RUBY_PATCH_LEVEL  e.g. -p124
  "pluto-news/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
end

.rootObject



18
19
20
# File 'lib/pluto/news/version.rb', line 18

def self.root
  "#{File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )}"
end

.versionObject



9
10
11
# File 'lib/pluto/news/version.rb', line 9

def self.version
  VERSION
end