Class: Coopy::CellInfo
- Inherits:
-
Object
- Object
- Coopy::CellInfo
- Defined in:
- lib/coopy/cell_info.rb
Instance Attribute Summary collapse
-
#category ⇒ Object
Returns the value of attribute category.
-
#category_given_tr ⇒ Object
Returns the value of attribute category_given_tr.
-
#conflicted ⇒ Object
Returns the value of attribute conflicted.
-
#lvalue ⇒ Object
Returns the value of attribute lvalue.
-
#pretty_value ⇒ Object
Returns the value of attribute pretty_value.
-
#pvalue ⇒ Object
Returns the value of attribute pvalue.
-
#rvalue ⇒ Object
Returns the value of attribute rvalue.
-
#separator ⇒ Object
relevant to updates, conflicts.
-
#updated ⇒ Object
Returns the value of attribute updated.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#category ⇒ Object
Returns the value of attribute category.
6 7 8 |
# File 'lib/coopy/cell_info.rb', line 6 def category @category end |
#category_given_tr ⇒ Object
Returns the value of attribute category_given_tr.
7 8 9 |
# File 'lib/coopy/cell_info.rb', line 7 def category_given_tr @category_given_tr end |
#conflicted ⇒ Object
Returns the value of attribute conflicted.
12 13 14 |
# File 'lib/coopy/cell_info.rb', line 12 def conflicted @conflicted end |
#lvalue ⇒ Object
Returns the value of attribute lvalue.
14 15 16 |
# File 'lib/coopy/cell_info.rb', line 14 def lvalue @lvalue end |
#pretty_value ⇒ Object
Returns the value of attribute pretty_value.
5 6 7 |
# File 'lib/coopy/cell_info.rb', line 5 def pretty_value @pretty_value end |
#pvalue ⇒ Object
Returns the value of attribute pvalue.
13 14 15 |
# File 'lib/coopy/cell_info.rb', line 13 def pvalue @pvalue end |
#rvalue ⇒ Object
Returns the value of attribute rvalue.
15 16 17 |
# File 'lib/coopy/cell_info.rb', line 15 def rvalue @rvalue end |
#separator ⇒ Object
relevant to updates, conflicts
10 11 12 |
# File 'lib/coopy/cell_info.rb', line 10 def separator @separator end |
#updated ⇒ Object
Returns the value of attribute updated.
11 12 13 |
# File 'lib/coopy/cell_info.rb', line 11 def updated @updated end |
#value ⇒ Object
Returns the value of attribute value.
4 5 6 |
# File 'lib/coopy/cell_info.rb', line 4 def value @value end |
Instance Method Details
#to_s ⇒ Object
17 18 19 20 21 |
# File 'lib/coopy/cell_info.rb', line 17 def to_s return value if (!updated) return lvalue + "::" + rvalue if (!conflicted) return pvalue + "||" + lvalue + "::" + rvalue; end |