Sha256: 0f6e3acd06cfb20ff893f09bab1fe5fe2939b9e0674541d44dcca3f59c95c61b
Contents?: true
Size: 323 Bytes
Versions: 5
Compression:
Stored size: 323 Bytes
Contents
module Terminal class Table class Cell def align(val, position, length) # positions = { :left => :ljust, :right => :rjust, :center => :center } positions = { left: :mb_ljust, right: :mb_rjust, center: :mb_center } val.public_send(positions[position], length) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems