Sha256: f35a6d8107df0627af8bef268e7c8591b1ef32e9235317fad882de770da54df8
Contents?: true
Size: 306 Bytes
Versions: 36
Compression:
Stored size: 306 Bytes
Contents
module Gitlab module Git module Util LINE_SEP = "\n".freeze def self.count_lines(string) case string[-1] when nil 0 when LINE_SEP string.count(LINE_SEP) else string.count(LINE_SEP) + 1 end end end end end
Version data entries
36 entries across 36 versions & 1 rubygems