Class: Coopy::CellInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#categoryObject

Returns the value of attribute category.



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

def category
  @category
end

#category_given_trObject

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

#conflictedObject

Returns the value of attribute conflicted.



12
13
14
# File 'lib/coopy/cell_info.rb', line 12

def conflicted
  @conflicted
end

#lvalueObject

Returns the value of attribute lvalue.



14
15
16
# File 'lib/coopy/cell_info.rb', line 14

def lvalue
  @lvalue
end

#pretty_valueObject

Returns the value of attribute pretty_value.



5
6
7
# File 'lib/coopy/cell_info.rb', line 5

def pretty_value
  @pretty_value
end

#pvalueObject

Returns the value of attribute pvalue.



13
14
15
# File 'lib/coopy/cell_info.rb', line 13

def pvalue
  @pvalue
end

#rvalueObject

Returns the value of attribute rvalue.



15
16
17
# File 'lib/coopy/cell_info.rb', line 15

def rvalue
  @rvalue
end

#separatorObject

relevant to updates, conflicts



10
11
12
# File 'lib/coopy/cell_info.rb', line 10

def separator
  @separator
end

#updatedObject

Returns the value of attribute updated.



11
12
13
# File 'lib/coopy/cell_info.rb', line 11

def updated
  @updated
end

#valueObject

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_sObject



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