Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updated readmed so examples reflect new output

  • Loading branch information...
commit 3d9aee10f6acd2eca08692603136e01b47f64611 1 parent 10d259a
@waslogic waslogic authored
Showing with 5 additions and 7 deletions.
  1. +5 −7 README.md
View
12 README.md
@@ -20,20 +20,18 @@ With numeric data
=> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
>> a.columnize
- => "1 2 3 4 5 6 7 8 9 10\n"
+ => "1 2 3 4 5 6 7 8 9 10"
>> puts a.columnize :arrange_array => true, :displaywidth => 10
[1, 2, 3,
4, 5, 6,
7, 8, 9,
- 10,
- ]
+ 10]
=> nil
>> puts a.columnize :arrange_array => true, :displaywidth => 20
[1, 2, 3, 4, 5, 6,
- 7, 8, 9, 10,
- ]
+ 7, 8, 9, 10]
=> nil
With String data
@@ -69,7 +67,7 @@ Using Columnize.columnize
-------------------------
>> Columnize.columnize(a)
- => "1 2 3 4 5 6 7 8 9 10\n"
+ => "1 2 3 4 5 6 7 8 9 10"
>> puts Columnize.columnize(a, :displaywidth => 10)
1 5 9
@@ -79,7 +77,7 @@ Using Columnize.columnize
=> nil
>> Columnize.columnize(g)
- => "bibrons golden madascar leopard mourning suras tokay\n"
+ => "bibrons golden madascar leopard mourning suras tokay"
>> puts Columnize.columnize(g, :displaywidth => 19, :colsep => ' | ')
bibrons | mourning
Please sign in to comment.
Something went wrong with that request. Please try again.