Class: AboveAll
- 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
Returns a new instance of AboveAll.
138
139
|
# File 'lib/semver_dialects/semantic_version/version_cut.rb', line 138
def initialize()
end
|
Instance Method Details
#!=(other_cut) ⇒ Object
169
170
171
|
# File 'lib/semver_dialects/semantic_version/version_cut.rb', line 169
def !=(other_cut)
!(self == other_cut)
end
|
#<(other_cut) ⇒ Object
149
150
151
|
# File 'lib/semver_dialects/semantic_version/version_cut.rb', line 149
def <(other_cut)
false
end
|
#<=(other_cut) ⇒ Object
157
158
159
|
# File 'lib/semver_dialects/semantic_version/version_cut.rb', line 157
def <=(other_cut)
self < other_cut || self == other_cut
end
|
#==(other_cut) ⇒ Object
165
166
167
|
# File 'lib/semver_dialects/semantic_version/version_cut.rb', line 165
def ==(other_cut)
(other_cut.instance_of? AboveAll) ? true : false
end
|
#>(other_cut) ⇒ Object
153
154
155
|
# File 'lib/semver_dialects/semantic_version/version_cut.rb', line 153
def >(other_cut)
other_cut.instance_of?(AboveAll) ? false : true
end
|
#>=(other_cut) ⇒ Object
161
162
163
|
# File 'lib/semver_dialects/semantic_version/version_cut.rb', line 161
def >=(other_cut)
self > other_cut || self == other_cut
end
|
#is_initial_version? ⇒ Boolean
145
146
147
|
# File 'lib/semver_dialects/semantic_version/version_cut.rb', line 145
def is_initial_version?
false
end
|
#is_successor_of?(other_cut) ⇒ Boolean
173
174
175
|
# File 'lib/semver_dialects/semantic_version/version_cut.rb', line 173
def is_successor_of?(other_cut)
!other_cut.instance_of?(AboveAll)
end
|
#to_s ⇒ Object
141
142
143
|
# File 'lib/semver_dialects/semantic_version/version_cut.rb', line 141
def to_s
"+inf"
end
|