Class: Version::CompositeToken

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

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

#initialize, #inspect, #numeric?, #to_s

Constructor Details

This class inherits a constructor from Version::StringToken

Instance Method Details

#revObject



94
95
96
# File 'Library/Homebrew/version.rb', line 94

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