Class: Version::CompositeToken Private

Inherits:
StringToken show all
Defined in:
Library/Homebrew/version.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

A token consisting of an alphabetic and a numeric part.

Direct Known Subclasses

AlphaToken, BetaToken, PatchToken, PreToken, RCToken

Constant Summary

Constants inherited from StringToken

StringToken::PATTERN

Instance Attribute Summary

Attributes inherited from Token

#value

Instance Method Summary collapse

Methods inherited from StringToken

#<=>, #initialize

Methods inherited from Token

create, from, #hash, #initialize, #inspect, #numeric?, #to_f, #to_i, #to_s

Constructor Details

This class inherits a constructor from Version::StringToken

Instance Method Details

#revObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


160
161
162
# File 'Library/Homebrew/version.rb', line 160

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