Class: Termplot::DSL::Col
Instance Attribute Summary
Attributes inherited from Panel
#cols, #rows, #start_col, #start_row
Instance Method Summary collapse
Methods inherited from Panel
Methods included from WidgetDSL
#histogram, #statistics, #timeseries
Methods included from Commands
Constructor Details
This class inherits a constructor from Termplot::DSL::Panel
Instance Method Details
#set_dimensions(rows, cols, start_row, start_col) ⇒ Object
64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/termplot/dsl/panels.rb', line 64 def set_dimensions(rows, cols, start_row, start_col) @rows = rows @cols = cols child_rows = rows / children.count children.each_with_index do |child, index| child.set_dimensions( child_rows, cols, child_rows * index, start_col ) end end |