Class: Coopy::CompareTable
- Inherits:
-
Object
- Object
- Coopy::CompareTable
- Defined in:
- lib/lib/coopy/compare_table.rb
Instance Method Summary collapse
- #align ⇒ Object
- #attach(comp) ⇒ Object
- #get_comparison_state ⇒ Object
- #get_indexes ⇒ Object
-
#initialize ⇒ CompareTable
constructor
A new instance of CompareTable.
- #store_indexes ⇒ Object
Constructor Details
#initialize ⇒ CompareTable
Returns a new instance of CompareTable.
7 8 |
# File 'lib/lib/coopy/compare_table.rb', line 7 def initialize end |
Instance Method Details
#align ⇒ Object
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_state ⇒ Object
32 33 34 |
# File 'lib/lib/coopy/compare_table.rb', line 32 def get_comparison_state return @comp end |
#get_indexes ⇒ Object
396 397 398 |
# File 'lib/lib/coopy/compare_table.rb', line 396 def get_indexes return @indexes end |
#store_indexes ⇒ Object
392 393 394 |
# File 'lib/lib/coopy/compare_table.rb', line 392 def store_indexes @indexes = Array.new end |