Class: BelowAll

Inherits:
VersionCut show all
Defined in:
lib/semver_dialects/semantic_version/version_cut.rb

Instance Attribute Summary

Attributes inherited from VersionCut

#semver, #value

Instance Method Summary collapse

Methods inherited from VersionCut

#cross_total, #diff, #major, #minor, #patch

Constructor Details

#initializeBelowAll

Returns a new instance of BelowAll.



97
98
# File 'lib/semver_dialects/semantic_version/version_cut.rb', line 97

def initialize()
end

Instance Method Details

#!=(other_cut) ⇒ Object



128
129
130
# File 'lib/semver_dialects/semantic_version/version_cut.rb', line 128

def !=(other_cut)
  !(self == other_cut)
end

#<(other_cut) ⇒ Object



108
109
110
# File 'lib/semver_dialects/semantic_version/version_cut.rb', line 108

def <(other_cut)
  other_cut.instance_of?(BelowAll) ? false : true
end

#<=(other_cut) ⇒ Object



116
117
118
# File 'lib/semver_dialects/semantic_version/version_cut.rb', line 116

def <=(other_cut)
  self < other_cut || self == other_cut
end

#==(other_cut) ⇒ Object



124
125
126
# File 'lib/semver_dialects/semantic_version/version_cut.rb', line 124

def ==(other_cut)
  (other_cut.instance_of? BelowAll) ? true : false
end

#>(other_cut) ⇒ Object



112
113
114
# File 'lib/semver_dialects/semantic_version/version_cut.rb', line 112

def >(other_cut)
  false
end

#>=(other_cut) ⇒ Object



120
121
122
# File 'lib/semver_dialects/semantic_version/version_cut.rb', line 120

def >=(other_cut)
  self > other_cut || self == other_cut
end

#is_initial_version?Boolean

Returns:

  • (Boolean)


104
105
106
# File 'lib/semver_dialects/semantic_version/version_cut.rb', line 104

def is_initial_version?
  false
end

#is_successor_of?(other_cut) ⇒ Boolean

Returns:

  • (Boolean)


132
133
134
# File 'lib/semver_dialects/semantic_version/version_cut.rb', line 132

def is_successor_of?(other_cut)
  false
end

#to_sObject



100
101
102
# File 'lib/semver_dialects/semantic_version/version_cut.rb', line 100

def to_s
  "-inf"
end