Method: Coopy::CompareTable#is_equal_2
- Defined in:
- lib/coopy/compare_table.rb
#is_equal_2(a, b) ⇒ Object
292 293 294 295 296 297 298 299 300 301 302 303 304 305 |
# File 'lib/coopy/compare_table.rb', line 292 def is_equal_2(a, b) if (a.width!=b.width || a.height!=b.height) return false end av = a.get_cell_view (0..a.height-1).each do |i| (0..a.width-1).each do |j| if (!av.equals(a.get_cell(j,i),b.get_cell(j,i))) return false end end end return true end |