Class: Coopy::CompareTable

Inherits:
Object
  • Object
show all
Defined in:
lib/lib/coopy/compare_table.rb

Instance Method Summary collapse

Constructor Details

#initializeCompareTable

Returns a new instance of CompareTable.



7
8
# File 'lib/lib/coopy/compare_table.rb', line 7

def initialize
end

Instance Method Details

#alignObject



26
27
28
29
30
# File 'lib/lib/coopy/compare_table.rb', line 26

def align 
  alignment = ::Coopy::Alignment.new
  self.align_core(alignment)
  return alignment
end

#attach(comp) ⇒ Object



17
18
19
20
21
22
23
24
# File 'lib/lib/coopy/compare_table.rb', line 17

def attach(comp)
  @comp = comp
  more = self.compare_core
  while(more && comp.run_to_completion) 
    more = self.compare_core
  end
  return !more
end

#get_comparison_stateObject



32
33
34
# File 'lib/lib/coopy/compare_table.rb', line 32

def get_comparison_state 
  return @comp
end

#get_indexesObject



396
397
398
# File 'lib/lib/coopy/compare_table.rb', line 396

def get_indexes 
  return @indexes
end

#store_indexesObject



392
393
394
# File 'lib/lib/coopy/compare_table.rb', line 392

def store_indexes 
  @indexes = Array.new
end