On Fri, Jun 15, 2012 at 10:06 AM, Erik D. <lists / ruby-forum.com> wrote:
...> [code]
>
> require 'rubygems'
> require 'ruport'
>
> data =3D `df -h`.split "\n"
> header=3Ddata.shift.split " ", 6
> data =A0=3D data.map{|line| line.split(/ =A0+/)}
> report =3D Ruport::Data::Table.new :data =3D> data, :column_names =3D> he=
ader
> table =3D table.sub_table{("Filesystem , Size, Used")}
should this ^ be report?  There is no table defined other than on this line


> puts report
>
> [/code]