Sha256: c58bd707a8252e06d8728ee754063ed588cc6291511e4018c716f2e2f49fa6d6
Contents?: true
Size: 281 Bytes
Versions: 384
Compression:
Stored size: 281 Bytes
Contents
module BookKeeping VERSION = 1 end class Transpose def self.transpose(input) lines = input.split("\n") max_line_length = lines.map(&:length).max lines .map { |line| line.ljust(max_line_length).chars } .transpose.map(&:join).join("\n").strip end end
Version data entries
384 entries across 384 versions & 1 rubygems