Spec-Zone.ru › Homebrew

Class: Version::StringToken Private

Inherits:
Token
  • Object
  • Token
  • Version::StringToken
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 string.

Direct Known Subclasses

CompositeToken

Constant Summary collapse

PATTERN =

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

/[a-z]+/i

Instance Attribute Summary collapse

  • #value ⇒ String readonly private

Instance Method Summary collapse

  • #initialize(value) ⇒ void constructor private

Methods inherited from Token

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

Constructor Details

#initialize(value) ⇒ void

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.

Parameters:

  • value (String)


154
155
156
# File 'version.rb', line 154

def initialize(value)
  super(value.to_s)
end

Instance Attribute Details

#value ⇒ String (readonly)

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:

  • (String)


151
152
153
# File 'version.rb', line 151

def value
  @value
end

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

Spec-Zone.ru

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