class YARD::LinkStdlib::Version
{Singleton} extension of {Gem::Version} that loads {VERSION} and provides some convenient methods.
Public Class Methods
dev?()
click to toggle source
Proxies to the {.instance}'s {#dev?}.
@return (see dev?
)
# File lib/yard/link_stdlib/version.rb, line 81 def self.dev? instance.dev? end
Private Class Methods
new()
click to toggle source
Private method to instantiate the {.instance} using the {VERSION} {String}.
@return [Version]
Calls superclass method
# File lib/yard/link_stdlib/version.rb, line 69 def self.new super VERSION end
Public Instance Methods
dev?()
click to toggle source
Tests if the package's version is a development pre-release.
@return [Boolean]
`true` if this is a development pre-release.
# File lib/yard/link_stdlib/version.rb, line 90 def dev? segments[3] == 'dev' end