Class: Bundler::PubGrub::VersionRange::Empty
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
| Class Chain: | |
| Instance Chain: | |
| Inherits: | Bundler::PubGrub::VersionRange 
 | 
| Defined in: | lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb | 
Constant Summary
::Bundler::PubGrub::VersionRange - Inherited
  
Class Method Summary
Instance Attribute Summary
- #any? ⇒ Boolean readonly
- #empty? ⇒ Boolean readonly
::Bundler::PubGrub::VersionRange - Inherited
| #any?, #empty?, | |
| #include_max? | Alias for #include_max. | 
| #include_min? | Alias for #include_min. | 
| #max, #min | |
Instance Method Summary
- #==(other)
- #allows_all?(other) ⇒ Boolean
- #eql?(other) ⇒ Boolean
- #hash
- #include?(_) ⇒ Boolean
- #intersect(other)
- #intersects?(_) ⇒ Boolean
- #invert
- #select_versions(_)
- #to_s
::Bundler::PubGrub::VersionRange - Inherited
| #==, #allows_all?, | |
| #allows_any? | Alias for #intersects?. | 
| #compare_version, #contiguous_to?, #eql?, #hash, #include?, #include_max, #include_min, #inspect, #intersect, #intersects?, #invert, | |
| #partition_versions | Partitions passed versions into [lower, within, higher]. | 
| #ranges, | |
| #select_versions | Returns versions which are included by this range. | 
| #span | The span covered by two ranges. | 
| #strictly_higher?, #strictly_lower?, #to_s, #union, #upper_invert, #constraints | |
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