Spec-Zone.ru › Homebrew

Class: Version::CompositeToken Private

Inherits:
StringToken
  • Object
  • Token
  • StringToken
  • Version::CompositeToken
show all
Defined in:
version.rb

Overview

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

A token consisting of an alphabetic and a numeric part.

Direct Known Subclasses

AlphaToken, BetaToken, PatchToken, PostToken, PreToken, RCToken

Constant Summary

Constants inherited from StringToken

StringToken::PATTERN

Instance Attribute Summary

Attributes inherited from StringToken

#value

Attributes inherited from Token

#value

Instance Method Summary collapse

  • #rev ⇒ Integer private

Methods inherited from StringToken

#initialize

Methods inherited from Token

#blank?, create, from, #initialize, #null?, #numeric?, #to_f, #to_i, #to_str

Constructor Details

This class inherits a constructor from Version::StringToken

Instance Method Details

#rev ⇒ Integer

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:

  • (Integer)


206
207
208
# File 'version.rb', line 206

def rev
  value[/[0-9]+/].to_i
end

© 2009–present Homebrew contributors
Licensed under the BSD 2-Clause License.
https://docs.brew.sh/rubydoc/Version/CompositeToken.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API