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

Row Titles? #43

Open
gilesdotcodes opened this issue Sep 23, 2014 · 3 comments
Open

Row Titles? #43

gilesdotcodes opened this issue Sep 23, 2014 · 3 comments

Comments

@gilesdotcodes
Copy link

I appreciate that I could add a new element at the front of my array, but is there a way to get Row Titles instead?

Thanks,
Hat

@nateberkopec
Copy link
Collaborator

Does #34 work for you?

@sodabrew
Copy link

I think the goal is this, where A and B come from a different source:

+-----+--------+
|     | Amount |
+-----+--------+
| A   |  $0.02 |
+-----+--------+
| B   |  $1.02 |
+-----+--------+

And some new thing like colheads as below:

Terminal::Table.new do |t|
  t.headings = ['Amount']
  t.colheads = ['A, B']
  t.rows = [ '$0.02', '$1.02']
end

@nanobowers
Copy link
Contributor

@nateberkopec Assuming #113 goes in as planned, one could foresee the desire to use a different vertical separator between the row-titles and the data as we do between the column-headings and the data.

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

4 participants