Class: Tap::Tasks::TableTask
- Inherits:
-
FileTask
- Object
- FileTask
- Tap::Tasks::TableTask
- Defined in:
- lib/tap/tasks/table_task.rb
Overview
TableTask is a base class for table-related FileTasks.
Constant Summary collapse
- SimpleTable =
Support::SimpleTable
Instance Method Summary collapse
-
#parse_table(str) ⇒ Object
Parses a Tap::Support::SimpleTable from the string using the table configurations.
Instance Method Details
#parse_table(str) ⇒ Object
Parses a Tap::Support::SimpleTable from the string using the table configurations.
17 18 19 20 |
# File 'lib/tap/tasks/table_task.rb', line 17 def parse_table(str) data = SimpleTable.parse_data(str, row_sep, col_sep) SimpleTable.new(data, :default_value => default_value, :header_row => header_row) end |