instance method Gem::Requirement#exact?

exact? -> bool[permalink][rdoc][edit]

条件がちょうどのバージョンが指定されている場合は、true を返します。


p Gem::Requirement.new("= 3").exact?          # => true
p Gem::Requirement.new("= 3", "= 3").exact?   # => true
p Gem::Requirement.new("= 3", "= 5").exact?   # => false
p Gem::Requirement.new("= 3", ">= 3").exact?  # => false
p Gem::Requirement.new(">= 3").exact?         # => false