Module: WellHelpers::Extensions
- Defined in:
- lib/well_helpers.rb
Overview
Provide model level wrappers for these methods. Requires the including class responds to #number_of_columns and #number of wells
Instance Method Summary collapse
Instance Method Details
#columns_range ⇒ Object
16 17 18 |
# File 'lib/well_helpers.rb', line 16 def columns_range WellHelpers.columns_range(columns: number_of_columns) end |
#locations_in_rows ⇒ Object
8 9 10 |
# File 'lib/well_helpers.rb', line 8 def locations_in_rows WellHelpers.row_order(rows: number_of_rows, columns: number_of_columns) end |
#rows_range ⇒ Object
12 13 14 |
# File 'lib/well_helpers.rb', line 12 def rows_range WellHelpers.rows_range(rows: number_of_rows) end |