class Gem::Version

Public Class Methods

correct?(version) click to toggle source
# File lib/rubygems_version_patch.rb, line 8
def self.correct?(version)
  return false if version.nil?

  version.to_s.match?(ANCHORED_VERSION_PATTERN)
end