Class: Gem::Requirement

Inherits:
Object
  • Object
show all
Defined in:
lib/bundler/rubygems_ext.rb

Instance Method Summary collapse

Instance Method Details

#exact?Boolean

Returns:

  • (Boolean)


177
178
179
180
# File 'lib/bundler/rubygems_ext.rb', line 177

def exact?
  return false unless @requirements.size == 1
  @requirements[0][0] == "="
end

#none?Boolean

Backport of performance enhancement added to Rubygems 1.4

Returns:

  • (Boolean)


173
174
175
# File 'lib/bundler/rubygems_ext.rb', line 173

def none?
  @none ||= (to_s == ">= 0")
end