Class: Bundler::PubGrub::VersionRange::Empty
Constant Summary
EMPTY
Instance Attribute Summary
#include_max, #include_min, #max, #min
Instance Method Summary
collapse
any, #compare_version, #contiguous_to?, empty, #inspect, #partition_versions, #ranges, #span, #strictly_higher?, #strictly_lower?, #union, #upper_invert
Constructor Details
Returns a new instance of Empty.
[View source]
15
16
|
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 15
def initialize
end
|
Instance Method Details
permalink
#==(other) ⇒ Object
[View source]
54
55
56
|
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 54
def ==(other)
other.class == self.class
end
|
permalink
#allows_all?(other) ⇒ Boolean
[View source]
38
39
40
|
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 38
def allows_all?(other)
other.empty?
end
|
[View source]
46
47
48
|
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 46
def any?
false
end
|
[View source]
18
19
20
|
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 18
def empty?
true
end
|
permalink
#eql?(other) ⇒ Boolean
[View source]
22
23
24
|
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 22
def eql?(other)
other.empty?
end
|
[View source]
26
27
28
|
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 26
def hash
[].hash
end
|
permalink
#include?(_) ⇒ Boolean
[View source]
42
43
44
|
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 42
def include?(_)
false
end
|
permalink
#intersect(other) ⇒ Object
[View source]
34
35
36
|
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 34
def intersect(other)
self
end
|
permalink
#intersects?(_) ⇒ Boolean
[View source]
30
31
32
|
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 30
def intersects?(_)
false
end
|
[View source]
58
59
60
|
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 58
def invert
VersionRange.any
end
|
permalink
#select_versions(_) ⇒ Object
[View source]
62
63
64
|
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 62
def select_versions(_)
[]
end
|
[View source]
50
51
52
|
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 50
def to_s
"(no versions)"
end
|