Class: WebCrawler::View::Table

Inherits:
Base
  • Object
show all
Defined in:
lib/web_crawler/view/table.rb

Overview

Render a table.

Parameters

Array[Array[String, String, …]]

Options

ident<Integer>

Indent the first column by ident value.

colwidth<Integer>

Force the first column to colwidth spaces wide.

Instance Attribute Summary

Attributes inherited from Base

#input

Instance Method Summary collapse

Methods inherited from Base

#draw, #format, #initialize

Constructor Details

This class inherits a constructor from WebCrawler::View::Base

Instance Method Details

#renderObject



15
16
17
# File 'lib/web_crawler/view/table.rb', line 15

def render
  format_table(@input)
end