Skip to content

Commit

Permalink
Update readme with demos
Browse files Browse the repository at this point in the history
  • Loading branch information
Rukomoynikov committed Nov 30, 2024
1 parent e137ae9 commit a5cb03d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ data = [
]

Tabled.new(data, framed: false, row_separator: nil).print_to_console

Helena 20 years Female
John 18 years Male
Alan 23 years Male
```

### Using Footer Inside a Row
Expand All @@ -61,6 +65,11 @@ data = [
]

Tabled.new(data, row_separator: nil).print_to_console

| Helena 20 years Female |
| John 18 years Male |
| Legendary assassin John Wick (Keanu Reeves). |
| Alan 23 years Male |
```

### Print Ruby CSV records
Expand All @@ -73,6 +82,13 @@ csv = CSV.parse(<<~ROWS, headers: true)
ROWS

Tabled.from_csv(csv: csv, framed: true).print_to_console

| Bob Engineering 1000 |
-------------------------
| Jane Sales 2000 |
-------------------------
| John Management 5000 |
-------------------------
```

## Exporting Data
Expand Down

0 comments on commit a5cb03d

Please sign in to comment.