Module: NRSER::Version
- Defined in:
- lib/nrser/version.rb
Class Method Summary collapse
-
.doc_url(rel_path) ⇒ String
Get a URL to a place in the current version’s docs on ruby-docs.org.
-
.gem_version ⇒ Gem::Version
Parse of VERSION.
-
.release ⇒ Gem::Version
The ‘Gem::Version` “release” for VERSION - everything before any `-<alpha-numeric>` prerelease part (like `-dev`).
Class Method Details
.doc_url(rel_path) ⇒ String
Get a URL to a place in the current version’s docs on ruby-docs.org.
62 63 64 65 66 67 68 |
# File 'lib/nrser/version.rb', line 62 def self.doc_url rel_path File.join( "http://www.rubydoc.info/gems/nrser", NRSER::Version.release.to_s, rel_path ) end |
.gem_version ⇒ Gem::Version
Returns Parse of NRSER::VERSION.
29 30 31 |
# File 'lib/nrser/version.rb', line 29 def self.gem_version Gem::Version.new VERSION end |
.release ⇒ Gem::Version
The ‘Gem::Version` “release” for NRSER::VERSION - everything before any `-<alpha-numeric>` prerelease part (like `-dev`).
49 50 51 |
# File 'lib/nrser/version.rb', line 49 def self.release gem_version.release end |