Class: Coopy::TableComparisonState
- Inherits:
-
Object
- Object
- Coopy::TableComparisonState
- Defined in:
- lib/coopy/table_comparison_state.rb
Instance Attribute Summary collapse
-
#a ⇒ Object
Table.
-
#b ⇒ Object
Table.
-
#completed ⇒ Object
boolean.
-
#has_same_columns ⇒ Object
Do tables have blatantly same set of columns?.
-
#has_same_columns_known ⇒ Object
boolean.
-
#is_equal ⇒ Object
Are tables trivially equal?.
-
#is_equal_known ⇒ Object
boolean.
-
#p ⇒ Object
Table.
-
#run_to_completion ⇒ Object
boolean.
Instance Method Summary collapse
-
#initialize ⇒ TableComparisonState
constructor
A new instance of TableComparisonState.
- #reset ⇒ Object
Constructor Details
#initialize ⇒ TableComparisonState
Returns a new instance of TableComparisonState.
19 20 21 |
# File 'lib/coopy/table_comparison_state.rb', line 19 def initialize reset end |
Instance Attribute Details
#a ⇒ Object
Table
5 6 7 |
# File 'lib/coopy/table_comparison_state.rb', line 5 def a @a end |
#b ⇒ Object
Table
6 7 8 |
# File 'lib/coopy/table_comparison_state.rb', line 6 def b @b end |
#completed ⇒ Object
boolean
8 9 10 |
# File 'lib/coopy/table_comparison_state.rb', line 8 def completed @completed end |
#has_same_columns ⇒ Object
Do tables have blatantly same set of columns?
16 17 18 |
# File 'lib/coopy/table_comparison_state.rb', line 16 def has_same_columns @has_same_columns end |
#has_same_columns_known ⇒ Object
boolean
17 18 19 |
# File 'lib/coopy/table_comparison_state.rb', line 17 def has_same_columns_known @has_same_columns_known end |
#is_equal ⇒ Object
Are tables trivially equal?
12 13 14 |
# File 'lib/coopy/table_comparison_state.rb', line 12 def is_equal @is_equal end |
#is_equal_known ⇒ Object
boolean
13 14 15 |
# File 'lib/coopy/table_comparison_state.rb', line 13 def is_equal_known @is_equal_known end |
#p ⇒ Object
Table
4 5 6 |
# File 'lib/coopy/table_comparison_state.rb', line 4 def p @p end |
#run_to_completion ⇒ Object
boolean
9 10 11 |
# File 'lib/coopy/table_comparison_state.rb', line 9 def run_to_completion @run_to_completion end |
Instance Method Details
#reset ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'lib/coopy/table_comparison_state.rb', line 23 def reset @completed = false @run_to_completion = true @is_equal_known = false @is_equal = false @has_same_columns = false @has_same_columns_known = false end |