Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Define width of each column #64

Open
vikas027 opened this issue Jan 19, 2016 · 1 comment
Open

Feature Request: Define width of each column #64

vikas027 opened this issue Jan 19, 2016 · 1 comment

Comments

@vikas027
Copy link

Thanks for writing this excellent gem.
I have a feature request. It would be great to have an option of defining width for each column. For instance, in your example column "word" could be 50 and column "Number" could be 10.

# > puts table
#
# +----------------------+--------+
# | Word                 | Number |
# +----------------------+--------+
# | One                  | 1      |
# | Two                  | 2      |
# | Three                | 3      |
# +----------------------+--------+
@smprather
Copy link

I agree it would be nice. The work-around is to pad your row elements with spaces (of course).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants