Class: YARD::NRSER::Cucumber::Version

Inherits:
Gem::Version
  • Object
show all
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

Instance Method Summary collapse

Class Method Details

.dev?Boolean

Proxies to the #instance‘s #dev?.

Returns:

  • (Boolean)
  • (Boolean)

    ‘true` if this is a development pre-release.



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.

Returns:

  • (Boolean)

    ‘true` if this is a development pre-release.



91
92
93
# File 'lib/yard/nrser/cucumber/version.rb', line 91

def dev?
  segments[3] == 'dev'
end