class ChefUtils::VersionString
def <=>(other)
-
(Integer)-
Parameters:
-
other(Object) --
def <=>(other) other_ver = case other when VersionString other.parsed_version else begin Gem::Version.create(other.to_s) rescue ArgumentError # Comparing to a string that isn't a version. return super end end parsed_version <=> other_ver end