module Twitter class Version MAJOR = 5 MINOR = 5 PATCH = 1 PRE = nil class << self # @return [String] def to_s [MAJOR, MINOR, PATCH, PRE].compact.join('.') end end end end