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

Already on GitHub? Sign in to your account

Add Separator class to represent separating rows #15

merged 5 commits into from Oct 20, 2011


None yet
2 participants

rrrene commented Oct 19, 2011

Since we are now representing Rows and Cells by classes, this patch adds the conclusive representation of separators as a subclass of Row.

Of course you still create your separators as usual:

  table { |t|
    t << :separator

But under the hood it is now handled as its own object instead of a symbol we have to check for before we can tread a row as a Row object.

@scottjg scottjg added a commit that referenced this pull request Oct 20, 2011

@scottjg scottjg Merge pull request #15 from rrrene/master
Add Separator class to represent separating rows

@scottjg scottjg merged commit fd09e19 into tj:master Oct 20, 2011

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