Sha256: 06d15b28724d718afbdd95fa1191d351da27d5ad27d692dab3dda663de0b303f

Contents?: true

Size: 270 Bytes

Versions: 2

Compression:

Stored size: 270 Bytes

Contents

# -*- encoding : utf-8 -*-
module Megingiard
  # The width of the terminal
  TERMINAL_WIDTH = Integer(`tput cols`)

  # A Cell has half of the width of the terminal
  CELL_WIDTH = TERMINAL_WIDTH / 2

  # A Cell filled with whitespace
  EMPTY_CELL = ' ' * CELL_WIDTH
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
megingiard-0.1.0 lib/megingiard/terminal_width.rb
megingiard-0.0.1 lib/megingiard/terminal_width.rb