123456789_123456789_123456789_123456789_123456789_

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

EMPTY

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.newEmpty

[ GitHub ]

  
# 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

[ GitHub ]

  
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb', line 38

def allows_all?(other)
  other.empty?
end

#eql?(other) ⇒ Boolean

[ GitHub ]

  
# 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

[ GitHub ]

  
# 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

[ GitHub ]

  
# 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