Sha256: 7046aaf5b8cc9b1422a237c6a5565be49c62376e4a02d4ce4dc9c402960b8f40
Contents?: true
Size: 426 Bytes
Versions: 1
Compression:
Stored size: 426 Bytes
Contents
module Maketable class Utilx class << self def make_table_format(data:, format: :trac_wiki) lines = [] case format when :trac_wiki line = %(|| #{data.join(" || ")} ||) lines << line when :markdown lines << %(| #{data.join(" | ")} |) else raise InvalidFormatError end lines end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
maketable-0.1.0 | lib/maketable/utilx.rb |