def replace_row(sheet_name, index, value)
      unless sheet_name.kind_of? String
        raise ArgumentError, 'Invalid sheet name'
      end
      unless index.kind_of? Integer
        raise ArgumentError, 'Invalid column index'
      end
      unless value.kind_of? Array
        raise ArgumentError, 'Invalid value: should be an array'
      end
      Xcellus::_replace_row(@handle, sheet_name, value.to_json, index)
    end
def replace_row(sheet_name, index, value)
      unless sheet_name.kind_of? String
        raise ArgumentError, 'Invalid sheet name'
      end
      unless index.kind_of? Integer
        raise ArgumentError, 'Invalid column index'
      end
      unless value.kind_of? Array
        raise ArgumentError, 'Invalid value: should be an array'
      end
      Xcellus::_replace_row(@handle, sheet_name, value.to_json, index)
    end
Replaces the row at `index` in the provided `sheet_name`.
 sheet_name:  Name of the sheet in which the row must be replaced. Throws
              a StandardException when a sheet with the provided name
              cannot be found.
 index:      Index of the row to be replaced.
 value:      An array with values to be replaced. Passing `nil` prevents
             values of the cell in the same index from being changed.