# File lib/mspec/utils/version.rb, line 27 27: def to_i 28: unless @integer 29: major, minor, tiny, patch = @version.split "." 30: if @ceil 31: tiny = 99 unless tiny 32: patch = 9999 unless patch 33: end 34: parts = [major, minor, tiny, patch].map { |x| x.to_i } 35: @integer = ("1%02d%02d%02d%04d" % parts).to_i 36: end 37: @integer 38: end