Class: Bundler::PubGrub::VersionRange::Empty
- Inherits:
-
VersionRange
- Object
- VersionRange
- Bundler::PubGrub::VersionRange::Empty
- Defined in:
- lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
- #allows_all?(other) ⇒ Boolean
- #any? ⇒ Boolean
- #empty? ⇒ Boolean
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
- #include?(_) ⇒ Boolean
-
#initialize ⇒ Empty
constructor
A new instance of Empty.
- #intersect(other) ⇒ Object
- #intersects?(_) ⇒ Boolean
- #invert ⇒ Object
- #select_versions(_) ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ Empty
Returns a new instance of Empty.
15 16 |
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 15 def initialize end |
Instance Method Details
#==(other) ⇒ Object
54 55 56 |
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 54 def ==(other) other.class == self.class end |
#allows_all?(other) ⇒ Boolean
38 39 40 |
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 38 def allows_all?(other) other.empty? end |
#any? ⇒ Boolean
46 47 48 |
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 46 def any? false end |
#empty? ⇒ Boolean
18 19 20 |
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 18 def empty? true end |
#eql?(other) ⇒ Boolean
22 23 24 |
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 22 def eql?(other) other.empty? end |
#hash ⇒ Object
26 27 28 |
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 26 def hash [].hash end |
#include?(_) ⇒ Boolean
42 43 44 |
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 42 def include?(_) false end |
#intersect(other) ⇒ Object
34 35 36 |
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 34 def intersect(other) self end |
#intersects?(_) ⇒ Boolean
30 31 32 |
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 30 def intersects?(_) false end |
#invert ⇒ Object
58 59 60 |
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 58 def invert VersionRange.any end |
#select_versions(_) ⇒ Object
62 63 64 |
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 62 def select_versions(_) [] end |
#to_s ⇒ Object
50 51 52 |
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 50 def to_s "(no versions)" end |