Module: Tableize
- Defined in:
- lib/version.rb,
lib/tableize/utils.rb,
lib/tableize/helper.rb,
lib/tableize/table_builder.rb,
lib/tableize/column_builder.rb
Defined Under Namespace
Classes: ColumnBuilder, TableBuilder
Constant Summary
collapse
- MAJOR =
0
- MINOR =
0
- BUILD =
1
- VERSION =
"#{MAJOR}.#{MINOR}.#{BUILD}"
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.convert_to_array(array, *args) ⇒ Object
2
3
4
5
6
7
8
9
10
|
# File 'lib/tableize/utils.rb', line 2
def self.convert_to_array(array, *args)
array = [array].flatten.compact
args.each do |arg|
array.push(arg)
end
array
end
|
Instance Method Details
#table_for(*args, &block) ⇒ Object
Also known as:
table