method

correct?

ruby latest stable - Class: Gem::Version
correct?(version)
public

True if the version string matches RubyGems’ requirements.