Class: YARD::NRSER::Cucumber::Version
- Inherits:
-
Gem::Version
- Object
- Gem::Version
- YARD::NRSER::Cucumber::Version
- Includes:
- Singleton
- Defined in:
- lib/yard/nrser/cucumber/version.rb
Overview
Singleton extension of Gem::Version that loads Locd::VERSION and provides some convenient methods.
Class Method Summary collapse
-
.dev? ⇒ Boolean
Proxies to the #instance‘s #dev?.
Instance Method Summary collapse
-
#dev? ⇒ Boolean
Tests if the package’s version is a development pre-release.
Class Method Details
.dev? ⇒ Boolean
Proxies to the #instance‘s #dev?.
82 83 84 |
# File 'lib/yard/nrser/cucumber/version.rb', line 82 def self.dev? instance.dev? end |
Instance Method Details
#dev? ⇒ Boolean
Tests if the package’s version is a development pre-release.
91 92 93 |
# File 'lib/yard/nrser/cucumber/version.rb', line 91 def dev? segments[3] == 'dev' end |