| Conditions | 3 |
| Total Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 1 |
| CRAP Score | 7.608 |
| Changes | 0 | ||
| 1 | # Template management |
||
| 2 | 1 | def get_center(template) # Responsive main method (12 units) |
|
| 3 | col = 12 # Main div, for all the width |
||
| 4 | col -= 3 unless template['right'].nil? # has right div |
||
| 5 | col -= 3 unless template['left'].nil? # has left div |
||
| 6 | "#{col}u important(collapse)" # return total units |
||
| 7 | end |
||
| 8 | |||
| 40 |