Class: Bundler::PubGrub::VersionRange::Empty
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
VersionRange
|
|
|
Instance Chain:
self,
VersionRange
|
|
| Inherits: |
VersionRange
|
| Defined in: | lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb |
Class Method Summary
- .new ⇒ Empty constructor
Instance Attribute Summary
- #any? ⇒ Boolean readonly
- #empty? ⇒ Boolean readonly
Instance Method Summary
Constructor Details
.new ⇒ Empty
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 15
def initialize end
Instance Attribute Details
#any? ⇒ Boolean (readonly)
[ GitHub ]
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 46
def any? false end
#empty? ⇒ Boolean (readonly)
[ GitHub ]
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 18
def empty? true end
Instance Method Details
#==(other)
[ GitHub ]# 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
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 38
def allows_all?(other) other.empty? end
#eql?(other) ⇒ Boolean
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 22
def eql?(other) other.empty? end
#hash
[ GitHub ]# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 26
def hash [].hash end
#include?(_) ⇒ Boolean
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 42
def include?(_) false end
#intersect(other)
[ GitHub ]# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 34
def intersect(other) self end
#intersects?(_) ⇒ Boolean
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 30
def intersects?(_) false end
#invert
[ GitHub ]# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 58
def invert VersionRange.any end
#select_versions(_)
[ GitHub ]# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 62
def select_versions(_) [] end
#to_s
[ GitHub ]# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 50
def to_s "(no versions)" end