Method: Writexlsx::Chart::Series#==

Defined in:
lib/write_xlsx/chart/series.rb

#==(other) ⇒ Object



276
277
278
279
280
281
282
283
284
285
286
287
288
# File 'lib/write_xlsx/chart/series.rb', line 276

def ==(other)
  methods = %w[
    categories values name name_formula name_id
    cat_data_id val_data_id
    line fill gradient marker trendline
    smooth labels inverted_color
    x2_axis y2_axis error_bars points
  ]
  methods.each do |method|
    return false unless instance_variable_get("@#{method}") == other.instance_variable_get("@#{method}")
  end
  true
end