Method: QDA::CodeReview#remove_col

Defined in:
lib/weft/codereview.rb

#remove_col(category) ⇒ Object

Removes the Category category as a column from the CodeReview. Returns the index of the removed category, if found, or nil, if not.



56
57
58
59
60
61
62
# File 'lib/weft/codereview.rb', line 56

def remove_col(category)
  return nil unless category
  return nil unless idx = @cols.index(category)
  @cols.delete_at(idx)
  @contents.each { | row | row.delete_at(idx) }
  return idx
end